You are here: Re: FUSK! « All PHP « IT news, forums, messages
Re: FUSK!

Posted by Norman Peelman on 01/10/07 01:05

"Geoff Berrow" <blthecat@ckdog.co.uk> wrote in message
news:cqr6q25oh5r97l8j22a5upffcqh7p2vg4q@4ax.com...
> Message-ID: <dfn6q25mhhkts44htptacnu5rmkbcnrq3p@4ax.com> from Onideus
> Mad Hatter contained the following:
>
> >In PHP...how you do you have a variable, array variable?
>
> Funnily enough, I was doing exactly the same thing yesterday. or
> rather, finding out you can't do it. As JO Aho points out, the way to
> go is multidimensional arrays.
>

You can create and use variable array variables easily like so:


${"line_$i"}[$pos] = "some text";

and to make multi-dimensional, just:

${"line_$i"}[$pos] = array('one' => array(), 'two' => array());

and more:

${"line_$i"}[$pos]['one'][0] = array();

etc.

Norm
--
FREE Avatar hosting at www.easyavatar.com

 

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

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