note 46460 deleted from language.operators.array by tomsommer

From: Date: Tue, 12 Oct 2004 16:45:51 +0000
Subject: note 46460 deleted from language.operators.array by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78434@lists.php.net to get a copy of this message
Note Submitter: wc87443457 at 163 dot com ---- what I want to say is: ÔÚÊý×éµÄÔËËãÖÐthe result of (array1 = array2 + array3 )is different from (array1 = array3 + array2). for example: <?php $wang = array('1','2','3','5'); $zhang = array('11','2','5','8','9'); $added = $wang + $zhong; print_r($added); /*It will print Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 5 [4] => 9 )*/ //but the flllow is different $added = $zhong + $wang; print_r($added); /*It will print Array ( [0] => 11 [1] => 2 [2] => 5 [3] => 8 [4] => 9 )*/ ?>

« previous php.notes (#78434) next »