note 40824 added to function.array-walk
| From: | burrowballer69athotmaildotcom at rn2 dot php dot net | Date: | Tue, 16 Mar 2004 03:21:05 +0000 |
| Subject: | note 40824 added to function.array-walk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66889@lists.php.net to get a copy of this message | ||
I have found that you get unexpected results when you break an array into its key and values before
using array walk.
something such as:
<?php
$array = array('goats', 'milk');
function function_name($value, $key)
{
return $value;
}
foreach($array as $key => $value)
{
echo array_walk($value, 'function_name');
}
?>
Although, you might just get an error.
----
Manual Page -- http://www.php.net/manual/en/function.array-walk.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40824
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40824&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40824&report=yes
Search -- http://master.php.net/manage/user-notes.php