note 91637 deleted from language.operators.assignment by mazzanet

From: Date: Thu, 20 Aug 2009 14:12:10 +0000
Subject: note 91637 deleted from language.operators.assignment by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159697@lists.php.net to get a copy of this message
Note Submitter: Kiam ---- There is not an array-append operator; the reported code must be read as <?php $array[] = 'assignment test'; ?> It's simply a special case of array index assignment with the difference that, without to explicitly set an index, PHP will use the last index used and increase it by one. <?php $array[1] = 'test'; $array[] = 'another test'; // $array[2] $array[] = 'try it again; // $array[3] ?>

« previous php.notes (#159697) next »