note 118086 added to function.reset
| From: | arne dot slabbinck at duo dot be | Date: | Thu, 01 Oct 2015 15:43:26 +0000 |
| Subject: | note 118086 added to function.reset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203887@lists.php.net to get a copy of this message | ||
Info:
Following code gives a strict warning in 5.4.45
return reset(array_keys($result['node']));
"Strict warning: Only variables should be passed by reference"
So should be:
$keys = array_keys($result['node']);
return reset($keys);
----
Server IP: 72.52.91.14
Probable Submitter: 81.82.250.168
----
Manual Page -- http://php.net/manual/en/function.reset.php
Edit -- https://master.php.net/note/edit/118086
Del: integrated -- https://master.php.net/note/delete/118086/integrated
Del: useless -- https://master.php.net/note/delete/118086/useless
Del: bad code -- https://master.php.net/note/delete/118086/bad+code
Del: spam -- https://master.php.net/note/delete/118086/spam
Del: non-english -- https://master.php.net/note/delete/118086/non-english
Del: in docs -- https://master.php.net/note/delete/118086/in+docs
Del: other reasons-- https://master.php.net/note/delete/118086
Reject -- https://master.php.net/note/reject/118086
Search -- https://master.php.net/manage/user-notes.php