note 40824 deleted from function.array-walk by aidan
| From: | aidan@php.net | Date: | Sun, 11 Jul 2004 02:08:15 +0000 |
| Subject: | note 40824 deleted from function.array-walk by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-73026@lists.php.net to get a copy of this message | ||
Note Submitter: burrowballer69 at hotmail dot com
----
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.