assigning an array to a array

From: Date: Sat, 27 Jan 2001 12:27:33 +0000
Subject: assigning an array to a array
Groups: php.general 
Request: Send a blank email to php-general+get-36972@lists.php.net to get a copy of this message
Yo! I was wondering if it is possible to assign an array another array, I mean like this: $arr1 = array(1, 2, 3, 4, 5); $arr2 = array() $arr2[0] = $arr1; so that the element of $arr2 contains $arr1 like: $arr2[0][0] == 1 I've tried this, but it does not work. Does anyone have any ideas how this could be accomplished without me not having to do like this: $arr2[0] = $arr1[0]; $arr2[1] = $arr1[1]; etc, etc... /Broder

« previous php.general (#36972) next »