Problem in the output of an array
orlandopozo_at_icnet.com.ve
Date: 11/30/03
- Next message: Jacob_at_Keystreams.Com: "Re: [PHP] Checking if a host is online"
- Previous message: sophie_at_sitadelle.com: "Re: [PHP] completely stumped by ereg()"
- Next in thread: sophie_at_sitadelle.com: "Re: [PHP] Problem in the output of an array"
- Reply: sophie_at_sitadelle.com: "Re: [PHP] Problem in the output of an array"
- Reply: Greg Beaver: "Re: Problem in the output of an array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "php" <php-general@lists.php.net> Date: Sat, 29 Nov 2003 20:17:31 -0400
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.
- Next message: Jacob_at_Keystreams.Com: "Re: [PHP] Checking if a host is online"
- Previous message: sophie_at_sitadelle.com: "Re: [PHP] completely stumped by ereg()"
- Next in thread: sophie_at_sitadelle.com: "Re: [PHP] Problem in the output of an array"
- Reply: sophie_at_sitadelle.com: "Re: [PHP] Problem in the output of an array"
- Reply: Greg Beaver: "Re: Problem in the output of an array"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]