Re: Problem in the output of an array
| From: | sophie at sitadelle dot com | Date: | Sun, 30 Nov 2003 00:45:07 +0000 |
| Subject: | Re: Problem in the output of an array | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171377@lists.php.net to get a copy of this message | ||
now i understand your pb but have no idea to solve it
good luck...
> I'm soory but your code doesn't make me understand what you want to
> do... Be more precise, it will help you to get some help
>
> 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.
>
> ----------------------------------------------------------------------------
> ---------
>
> This situation above was presented in a class that I have been
> developing, I want the value of the array, that is "value", but the
> script print Array[dim1][dim2][dim3][3], I don't if there is another way
> to do that but as the way above, I hope
> you can understand my problem, thanks for any help :).