Bug #14054 Updated: Error evaluating the Intval function

From: Date: Thu, 15 Nov 2001 09:25:02 +0000
Subject: Bug #14054 Updated: Error evaluating the Intval function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-70528@lists.php.net to get a copy of this message
ID: 14054 Updated by: derick Reported By: shiva@paraffa.org Old Status: Duplicate Status: Bogus Bug Type: *Regular Expressions Operating System: Windows 2000 Server PHP Version: 4.0.4pl1 New Comment: Non-Bugs have status 'Bogus' Previous Comments: ------------------------------------------------------------------------ [2001-11-15 04:23:04] bate@php.net try (int)$val or use sprintf() or any other function to format you integer. Btw. (int)$string returns 0 ------------------------------------------------------------------------ [2001-11-14 12:02:38] derick@php.net This is not a bug, please ask support questions on the php-general@lists.php.net mailinglist. Derick ------------------------------------------------------------------------ [2001-11-14 11:24:21] shiva@paraffa.org 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

« previous php.dev (#70528) next »