Reply to Re: Nested Arrays

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация