Array help

From: Date: Tue, 02 Nov 2004 20:59:54 +0000
Subject: Array help
Groups: php.general 
Request: Send a blank email to php-general+get-200955@lists.php.net to get a copy of this message
Hi, I have an variable that contains an array like this: [0] => Array( [0] => Array([0] => {3 3}) [1] => Array([0] => 3) ) [1] => Array( [0] => Array([0] => {3 3}) [1] => Array([0] => 3) ) [2] => Array( [0] => Array( [0] => {textlinks 0_15} [1] => {textlinks 16_30} ) [1] => Array( [0] => 0_15 [1] => 16_30 ) ) As you can see the third one (array [2] )for some reason is coming out as a double dimension array, is there any way to make it too into a single dimension and have just one key/value like the first 2 arrays? eg: the third one becomes [2] => Array( [0] => Array([0] => {textlinks 0_15}) [1] => Array([0] => 0_15) ) and a fouth is created like so [3] => Array( [0] => Array([0] => {textlinks 16_30}) [1] => Array([0] => 16_30) ) Thanks, Ryan

« previous php.general (#200955) next »