Reply to Re: Short syntax for array in PHP

Your name:

Reply:


Posted by David T. Ashley on 07/11/07 16:11

"Sebastian Deutsch" <spamboy@9elements.com> wrote in message
news:f72mvv$n9a$1@news01.versatel.de...
>
> is there a shorter syntax for array beside array("one", "two"),
> something link {"one", "two"}?

The only other syntax I'm aware of that may save you some typing is the
automatic assignment of subscripts, i.e.

$a[] = "I'm"; //$a[0] = "I'm"
$a[] = "the"; //$a[1] = "the"

Etc.

But as far as the "array" keyword ... no meaningful shortcut I'm aware of.

--
David T. Ashley (dta@e3ft.com)
http://www.e3ft.com (Consulting Home Page)
http://www.dtashley.com (Personal Home Page)
http://gpl.e3ft.com (GPL Publications and Projects)

[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

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