|
|
Posted by C. on 04/22/07 14:31
On 20 Apr, 04:32, Gleep <G...@Gleep.com> wrote:
>
> what I do is filter out the $ , then insert just the number with a simple function
>
> function clear_currency($cca){
> $ccb = array("$","," );
> $ccc = str_replace($ccb, "",$cca );
> return $ccc;
>
> }
It's probably a much better idea to filter all the non-numerics out.
use filter() or the OWASP toolkit
C.
Navigation:
[Reply to this message]
|