to all guru
how can i extract the value of my field (4 digits) that user inputted in my form
eg. 0001 output is 1? 0201 output is 201
0023 output is 23
1245 output is 1245
$string = '0001'; $int = (int) $string; echo $int; // outputs 1
Additionally, you may want to check out [man]intval/man.
dont cross post
http://phpbuilder.com/board/showthread.php?s=&threadid=10294281