note 41202 added to function.array
| From: | frank at codedor dot be | Date: | Fri, 02 Apr 2004 12:46:07 +0000 |
| Subject: | note 41202 added to function.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67519@lists.php.net to get a copy of this message | ||
it appears the first code sample for defining an array here was wrong - it needs a ; on the end :
<?php
$fruits = array (
"fruits" => array("a" => "orange", "b" =>
"banana", "c" => "apple"),
"numbers" => array(1, 2, 3, 4, 5, 6),
"holes" => array("first", 5 => "second", "third")
) ; // notice the ; here, it is not featured on the example
?>
strange - but this is the only way I could evade the parsing errors ....
(linux, apache, php 4.3.2 that is)
might help someone
----
Manual Page -- http://www.php.net/manual/en/function.array.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41202
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41202&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41202&report=yes
Search -- http://master.php.net/manage/user-notes.php