note 104452 added to mysqli-stmt.bind-result

From: Date: Thu, 16 Jun 2011 07:02:53 +0000
Subject: note 104452 added to mysqli-stmt.bind-result
Groups: php.notes 
Request: Send a blank email to php-notes+get-180592@lists.php.net to get a copy of this message
To clarify for anyone having problems with arrays, PHP will automatically pass arrays as references, cloning the array if needed in the event of setting or unsetting a part of it, changing a referenced variable does not trigger cloning. This is done for efficiency, to clone an array containing this information you may either use a foreach loop, or set/unset a key. Techniques like array_values will also work provided you don't mind losing your keys. ---- Server IP: 109.169.40.147 Probable Submitter: 178.96.254.84 ---- Manual Page -- http://www.php.net/manual/en/mysqli-stmt.bind-result.php Edit -- https://master.php.net/note/edit/104452 Del: integrated -- https://master.php.net/note/delete/104452/integrated Del: useless -- https://master.php.net/note/delete/104452/useless Del: bad code -- https://master.php.net/note/delete/104452/bad+code Del: spam -- https://master.php.net/note/delete/104452/spam Del: non-english -- https://master.php.net/note/delete/104452/non-english Del: in docs -- https://master.php.net/note/delete/104452/in+docs Del: other reasons-- https://master.php.net/note/delete/104452 Reject -- https://master.php.net/note/reject/104452 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180592) next »