Posted by Henrik Hansen on 06/08/06 12:25
Alan Little <alan@n-o-s-p-a-m-phorm.com> writes:
> Carved in mystic runes upon the very living rock, the last words of
> <RalphLacle@gmail.com> of comp.lang.php make plain:
>
>> I have a nested array:
>>
>> Array
>> (
>> [AiHist_SelectResult] => Array
>> (
>> [clsASCAiHist] => Array
>> (
>> [0] => Array
>> (
>> [HistID] => 0
>> [AiID] => 0
>> [TimestampUTC] => Array
>> (
>> [IsNull] => false
>> [Value] => 632851929000000000
>> )
>>
>> [AiValue] => 17.2
>> )
>>
>> I only want to print the AiValue
>>
>> How can i do that?
>
> print $Array['AiHist_SelectResult']['clsASCAiHist'][0]['AiValue'];
Oh right, I asumed you were getting more than one value in the array,
if not use this instead of what I wrote in my post :)
--
Henrik Hansen
Navigation:
[Reply to this message]
|