Reply to Re: Nested Arrays

Your name:

Reply:


Posted by Henrik Hansen on 06/08/06 12:23

RalphLacle@gmail.com writes:

> Hi,
>
> I hope somebody can explain this to me.
>
> 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?

foreach ($your_array_name["AiHist_SelectResult"]["clsASCAiHist"] as $key => $value) {
echo $value["AiValue"];
}

--
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

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