note 54152 deleted from function.array-unshift by mazzanet

From: Date: Fri, 24 Jun 2005 22:00:49 +0000
Subject: note 54152 deleted from function.array-unshift by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90927@lists.php.net to get a copy of this message
Note Submitter: mail at britlinks dot com Reason: useless ---- <?php // you can unshift an array onto an array too: $food = array(); $veg = array('carrot','potato'); $fruit = array('apple','banana'); array_unshift($food,$veg); array_unshift($food,$fruit); print_r($food,true); /* ...gives: Array ( [0] => Array ( [0] => apple [1] => banana ) [1] => Array ( [0] => carrot [1] => potato ) ) */ ?>

« previous php.notes (#90927) next »