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
EDIT : list items are not requirements, they are a list of activities and observations I have made. Sorry:(
1 Answer