<?php
$array['dim1']['dim2']['dim3'][3] = "value";

$dim1 = 'dim1';
$dim2 = 'dim2';
$dim3 = 'dim3';
$dim4 = 3;

$result = "{$array[$dim1][$dim2][$dim3][$dim4]}";

echo $result;
?>

Regards,
Greg
--
phpDocumentor
http://www.phpdoc.org

[EMAIL PROTECTED] wrote:
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.


-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to