note 53423 added to function.array
| From: | manoateasymaildothu at osu1 dot php dot net | Date: | Wed, 01 Jun 2005 08:34:01 +0000 |
| Subject: | note 53423 added to function.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89721@lists.php.net to get a copy of this message | ||
Hey,
I have just made a var_export from an array in PHP 4.3.10 and I the output was sthing like this:
$array = array(
0 => 'first',
2 => 'second',
3 => 'third',
4 => 'forth',
56 => 'fifth',
57 => 'sixth',
)
Notice the comma at the end of the last line. Actually the syntax is accepted by the parser, but as
I now the comma separates them, not close them. Was this always like this (and I'm just not
detailed in reading manuals) or this is something new? Which section mention this?
This might be confortable but If it is not compatible then useless. So If my knowledge is poor than
this might work everywhere :P
Thanks,
Mano
----
Manual Page -- http://www.php.net/manual/en/function.array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53423
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53423&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53423&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53423&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53423&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53423&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53423&report=yes
Search -- http://master.php.net/manage/user-notes.php