On 12-02-07 02:50 PM, Micky Hulse wrote:
Was there ever a time when having a comma at the end of the last array
element was not acceptable in PHP?
I just did a few quick tests:
... and it looks like having that comma ain't no big deal.
I can't believe that I always thought that having the trailing comma
was a no-no in PHP (maybe I picked that up from my C++ classes in
college? I just don't remember where I picked up this (bad) habit).
I would prefer to have the trailing comma... I just can't believe I
have avoided using it for all these years.
you have a trailing comma in a JS array. That may be where you picked up
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php