note 66753 added to function.settype

From: Date: Sun, 28 May 2006 04:13:30 +0000
Subject: note 66753 added to function.settype
Groups: php.notes 
Request: Send a blank email to php-notes+get-112422@lists.php.net to get a copy of this message
not sure why this is, but after fetching data from mySQL, this returns 0 settype($result[num],"int"); $num2 = $result[num]; while changing the array value to a var then putting back in the array seems to work. $num2 = $result[num]; settype($num2,"int"); $result[num] = $num2; odd.... ---- Server IP: 64.71.164.2 Probable Submitter: 68.4.173.224 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.settype.php Edit -- http://master.php.net/note/edit/66753 Del: integrated -- http://master.php.net/note/delete/66753/integrated Del: useless -- http://master.php.net/note/delete/66753/useless Del: bad code -- http://master.php.net/note/delete/66753/bad+code Del: spam -- http://master.php.net/note/delete/66753/spam Del: non-english -- http://master.php.net/note/delete/66753/non-english Del: in docs -- http://master.php.net/note/delete/66753/in+docs Del: other reasons-- http://master.php.net/note/delete/66753 Reject -- http://master.php.net/note/reject/66753 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#112422) next »