note 108373 deleted from language.operators.increment by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:25:11 +0000 |
| Subject: | note 108373 deleted from language.operators.increment by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189860@lists.php.net to get a copy of this message | ||
Note Submitter: nicolas dot giraud at actiane dot com
----
Note that incrementing or decrementing arrays or objects variables have no effects.
<?php
$a = array(0,'1','foo'=>'bar',3.5);
$a++;
print_r($a);
?>
gives the same result that
<?php
$a = array(0,'1','foo'=>'bar',3.5);
print_r($a);
?>
gives.
Logical, but, need to be noticed.