[Phpwm] unsigning a numeric variable

Rob Allen rob at akrabat.com
Fri May 5 10:22:18 BST 2006


Phil Beynon wrote:

> All I'm trying to do here is catch any numeric negatives in a form
> submission, which in reality shouldn't really ever occur. 

$value = str_replace('-', '', $value);

Also works :)



Personally, I'd use abs() though.


Regards,

Rob...



More information about the Phpwm mailing list