Reply to Re: Creative a regular array from associative array?

Your name:

Reply:


Posted by Chris Hope on 03/08/06 03:17

namemattersnot@msn.com wrote:

> Re,
>
> I have the following array:
>
> $my_array[x]['date']
> ['time']
> ['filename']
>
> how do I create a $time_array that will ONLY have all values of
> $my_array[x]['time']? i can write a function to walk through the
> associative array, but is there a more efficient method?

Would this do what you want?

$foo = $my_array[x]['time'];

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

[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

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