PHP Classes

It can't handle expression without errors, if whole expressio...

Recommend this page to a friend!

      Eval Math  >  All threads  >  It can't handle expression without...  >  (Un) Subscribe thread alerts  
Subject:It can't handle expression without...
Summary:Package rating comment
Messages:1
Author:Fitrah Muhammad
Date:2012-12-15 13:56:30
 

Fitrah Muhammad rated this package as follows:

Utility: Good
Consistency: Sufficient
Examples: Sufficient

  1. It can't handle expression without...   Reply   Report abuse  
Picture of Fitrah Muhammad Fitrah Muhammad - 2012-12-15 13:56:30
It can't handle expression without errors, if whole expression is inside brackets. For example if the expression is = (1+2)
Solution: $expr= ($expr == '('.substr($expr, 1, -1).')' ? substr($expr, 1, -1) : $expr);