You are here: Re: Array to simple variables assignment « PHP Programming Language « IT news, forums, messages
Re: Array to simple variables assignment

Posted by Andy Hassall on 07/25/06 22:57

On Tue, 25 Jul 2006 18:29:52 -0400, Bob Stearns <rstearns1241@charter.net>
wrote:

>Am I conflating PHP with another language (PERL maybe?) or can you do an
>assignment to $a, $b and $c something like ($a, $b, $c) = $array? The
>given sytax doesn't work nor does [$a, $b, $c] = $array. This leads me
>to believe in the conflation theory. If there is a syntax for this,
>could you please send me a manual reference for it?

Yes, you're closer to Perl with the first example, which is almost valid in
that language, except it'd be @array not $array.

PHP requires an extra word to do the same thing; see http://uk2.php.net/list


--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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