simple PHP integer conversion
- by Ygam
convert this: $300
to this : 300
can't do it with intval() or (int)
typecasting
if the non-numerical character is
suffixed (300$), both works and
returns 300
if it is prefixed it returns 0
the non-numerical character can be anything other than the "$"(i.e. "askldjflksdjflsd")
Please help