note 106374 added to function.extract

From: Date: Tue, 01 Nov 2011 14:30:52 +0000
Subject: note 106374 added to function.extract
Groups: php.notes 
Request: Send a blank email to php-notes+get-184269@lists.php.net to get a copy of this message
When extracting from a row after a database query using for example: $row = mysql_fetch_array($result, MYSQL_ASSOC) extract($row); I find that the resultant variables may not match the variable type in the database. In particular I have found integers in the database may gettype() to string on the extracted variable. ---- Server IP: 192.41.42.26 Probable Submitter: 12.71.44.130 ---- Manual Page -- http://www.php.net/manual/en/function.extract.php Edit -- https://master.php.net/note/edit/106374 Del: integrated -- https://master.php.net/note/delete/106374/integrated Del: useless -- https://master.php.net/note/delete/106374/useless Del: bad code -- https://master.php.net/note/delete/106374/bad+code Del: spam -- https://master.php.net/note/delete/106374/spam Del: non-english -- https://master.php.net/note/delete/106374/non-english Del: in docs -- https://master.php.net/note/delete/106374/in+docs Del: other reasons-- https://master.php.net/note/delete/106374 Reject -- https://master.php.net/note/reject/106374 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184269) next »