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]
|