Login   Register  
PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Eval Math  >  All threads  >  It can't handle expression without errors, if whole expressio...  >  (Un) Subscribe thread alerts  
Subject:It can't handle expression without errors, if whole expressio...
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 errors, if whole expressio...   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);