Problem in the output of an array
| From: | orlandopozo at icnet dot com dot ve | Date: | Sun, 30 Nov 2003 00:17:31 +0000 |
| Subject: | Problem in the output of an array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171373@lists.php.net to get a copy of this message | ||
I have this code, I would like, if this could be done
<?
$array['dim1']['dim2']['dim3'][3] = "value";
$dim1 = 'dim1';
$dim2 = 'dim2';
$dim3 = 'dim3';
$dim4 = 3;
$test = "[$dim1][$dim2][$dim3][$dim4]";
$result = "$array$test";
echo $result;
?>
The output is : Array[dim1][dim2][dim3][3]
I need that the output was: value
Thanks in advanced for any help.