[pLog-svn] r6503 -plugins/branches/lifetype-1.2/editcomments/class/action

Mark Wu markplace at gmail.com
Thu Jun 5 07:56:26 EDT 2008


 
>  	How confident are you that a cast eliminates everything 
> except an integer?  (hint, you shouldn't be very confident at all)

Mmmm.... If I can not trust about type casting in PHP, then How can I trust
the rest of parts about PHP?

> How confident are you that a preg_replace("/[^0-9]/", "") 
> does the job? 
> 100%.

BTW, the filter you use will get "000345" from "000abc345"

Mark



More information about the pLog-svn mailing list