note 100659 added to language.operators
| From: | johnheix at hotmail dot com | Date: | Thu, 28 Oct 2010 16:03:41 +0000 |
| Subject: | note 100659 added to language.operators | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173558@lists.php.net to get a copy of this message | ||
I am not sure if this is a bug:
Given:
$n=0;
$b=array('1','2','3','4');
$a=array();
who can predict this:
$a[$n++]=$b[$n++];
or
$a[$n]=$b[$n++];
or
$a[++$n]=$b[$n++];
try to display $a, it will give you a surprising result.
----
Server IP: 72.55.140.6
Probable Submitter: 74.13.110.99
----
Manual Page -- http://www.php.net/manual/en/language.operators.php
Edit -- https://master.php.net/note/edit/100659
Del: integrated -- https://master.php.net/note/delete/100659/integrated
Del: useless -- https://master.php.net/note/delete/100659/useless
Del: bad code -- https://master.php.net/note/delete/100659/bad+code
Del: spam -- https://master.php.net/note/delete/100659/spam
Del: non-english -- https://master.php.net/note/delete/100659/non-english
Del: in docs -- https://master.php.net/note/delete/100659/in+docs
Del: other reasons-- https://master.php.net/note/delete/100659
Reject -- https://master.php.net/note/reject/100659
Search -- https://master.php.net/manage/user-notes.php