Re: Merging Arrays

From: Date: Sat, 23 Feb 2002 18:12:43 +0000
Subject: Re: Merging Arrays
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12239@lists.php.net to get a copy of this message
im not saying this will work, but on the PHP website it has a print_r ( array ); which prints ever element of an array. "<pre> <?php $a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x','y','z')); print_r ($a); ?> </pre> which will output : <pre> Array ( [a] => apple [b] => banana [c] => Array ( [0] => x [1] => y [2] => z ) ) </pre> Remember that print_r() will move the array pointer to the end. Use reset() to bring it back to beginning." (this was copy/pasted from the php.net website)

« previous php.windows (#12239) next »