You are here: Re: NEWBIE « PHP Programming Language « IT news, forums, messages
Re: NEWBIE

Posted by Lorenzo Thurman on 07/20/05 21:10

In article <42de10fd$0$80444$e4fe514c@news.xs4all.nl>,
Erwin Moller
<since_humans_read_this_I_am_spammed_too_much@spamyourself.com> wrote:

> Lorenzo wrote:
>
> > I want to directly access the the individual values in an array by using
> > their keys. Can this be done in PHP? The O'Reilly book I have
> > "Programming PHP" does not show how to do this. IT shows ways of
> > iterating through the array and processing keys, grabbing key/value
> > pairs, but I see a map-like function that will allow direct access.
> >
>
> Hi Lorenzo,
>
> Something like this?
>
> $test["tralala"] = " PHP ";
> $test["Lorenzo"] = "Hee man, ";
> $test["testing"] = "rocks!";
>
> echo $test["Lorenzo"].$test["tralala"].$test["testing"];
>
> Regards,
> Erwin Moller
>
> PS: This is just a very simple example.
> Check out the all array-manipulations at www.php.net. It is overwhelming.

I get it now. I was thinking too hard.
Thanks

 

Navigation:

[Reply to this 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

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