note 100659 rejected from language.operators by danbrown
| From: | danbrown@php.net | Date: | Thu, 28 Oct 2010 16:30:20 +0000 |
| Subject: | note 100659 rejected from language.operators by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-173566@lists.php.net to get a copy of this message | ||
Note Submitter: johnheix at hotmail dot com
----
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.