note 85145 added to function.intval

From: Date: Sun, 17 Aug 2008 02:29:28 +0000
Subject: note 85145 added to function.intval
Groups: php.notes 
Request: Send a blank email to php-notes+get-143566@lists.php.net to get a copy of this message
Note that this function behaves different in PHP4/5 when parsing NAN-values. Try the following example: <?php die( "Result = " . intval( NAN ) ); ?> - In PHP 4 the result is 0 - In PHP 5 the result is 2^31 (running on 32bit) Yhoko ---- Server IP: 194.153.94.10 Probable Submitter: 92.104.174.229 ---- Manual Page -- http://www.php.net/manual/en/function.intval.php Edit -- https://master.php.net/note/edit/85145 Del: integrated -- https://master.php.net/note/delete/85145/integrated Del: useless -- https://master.php.net/note/delete/85145/useless Del: bad code -- https://master.php.net/note/delete/85145/bad+code Del: spam -- https://master.php.net/note/delete/85145/spam Del: non-english -- https://master.php.net/note/delete/85145/non-english Del: in docs -- https://master.php.net/note/delete/85145/in+docs Del: other reasons-- https://master.php.net/note/delete/85145 Reject -- https://master.php.net/note/reject/85145 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#143566) next »