ID: 14054 Updated by: bate Reported By: [EMAIL PROTECTED] Old Status: Bogus Status: Duplicate Bug Type: *Regular Expressions Operating System: Windows 2000 Server PHP Version: 4.0.4pl1 New Comment:
try (int)$val or use sprintf() or any other function to format you integer. Btw. (int)$string returns 0 Previous Comments: ------------------------------------------------------------------------ [2001-11-14 12:02:38] [EMAIL PROTECTED] This is not a bug, please ask support questions on the [EMAIL PROTECTED] mailinglist. Derick ------------------------------------------------------------------------ [2001-11-14 11:24:21] [EMAIL PROTECTED] Hi, See this simple script <? if (intval($val) == $val) echo "$val is equal to".intval($val); else echo "$val is not equal to".intval($val); ?> If i put a string in $val...for example "ABC" ad i run the script...PHP print:"ABC is equal to 0" Thanks for all your work that give me a work ^_^' ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14054&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]