News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brian Moon's Blog:
Short Array Syntax for PHP
May 29, 2008 @ 11:13:00

There's been some talk floating around about a proposed additional syntax for creating arrays in PHP. Brian Moon sums it up nicely in a new post to his blog.

So, I was asked in IRC today about the proposed short array syntax for PHP. For those that don't know, I mean the same syntax that other languages (javascript, perl, python, ruby) all have. [...] It just feels like a good addition to the language. It is common among web languages and therefore users coming into PHP from other languages may find it more comfortable.

He compares it with other data type creation in PHP (you don't call int() to make an integer, so why call array() to make an array). However, according to a post from the internals mailing list, we might not be seeing this any time soon.

0 comments voice your opinion now!
short syntax array function integer string language construct


blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: PHP is much better than you think

Gaylord Aulke's Blog: PHP vs. Java

rooJSolutions Blog: Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess.

Sandro Groganz's Blog: Syntax Highlighting & Migrating Permalinks in WordPress

I/O Reader: 15 Cool Things & 12 Things to Dislike About PHP


Community Events





Don't see your event here?
Let us know!


list language tool conference version introduction voicesoftheelephpant api release laravel opinion composer podcast series unittest framework community interview symfony configure

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework