simple PHP integer conversion
<p>convert this: $300
to this : 300</p>

<ul>
<li>can't do it with intval() or (int)
typecasting</li>
<li>if the non-numerical character is
suffixed (300$), both works and
returns 300</li>
<li>if it is prefixed it returns 0</li>
<li>the non-numerical character can be anything other than the "$"(i.e. "askldjflksdjflsd")</li>
</ul>

<p>Please help</p>

<p><strong>EDIT</strong> : list items are not requirements, they are a list of activities and observations I have made. Sorry:(</p>
