note 108373 added to language.operators.increment
| From: | nicolas dot giraud at actiane dot com | Date: | Fri, 20 Apr 2012 09:12:43 +0000 |
| Subject: | note 108373 added to language.operators.increment | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187258@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 195.221.21.36
Probable Submitter: 62.244.76.155
----
Manual Page -- http://www.php.net/manual/en/language.operators.increment.php
Edit -- https://master.php.net/note/edit/108373
Del: integrated -- https://master.php.net/note/delete/108373/integrated
Del: useless -- https://master.php.net/note/delete/108373/useless
Del: bad code -- https://master.php.net/note/delete/108373/bad+code
Del: spam -- https://master.php.net/note/delete/108373/spam
Del: non-english -- https://master.php.net/note/delete/108373/non-english
Del: in docs -- https://master.php.net/note/delete/108373/in+docs
Del: other reasons-- https://master.php.net/note/delete/108373
Reject -- https://master.php.net/note/reject/108373
Search -- https://master.php.net/manage/user-notes.php