array_walk()
| From: | Abe | Date: | Thu, 28 Dec 2000 20:59:22 +0000 |
| Subject: | array_walk() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-32148@lists.php.net to get a copy of this message | ||
Hey there,
I wonder if any of you wizards can see why this is not working. It is an example from a book but
doesn't work for me:
function println ($s) {
echo "$s<br>\n";
}
$countries = array ("ca", "cr", "de", "us")
array_walk ($initials, println);
I seem to get a parse error on the array_walk line....
I am pretty sure that array_walk is supposed to work on PHP3.
Thanks Guys,
Abe