note 102381 rejected from function.array-walk by thiago
[email protected] Fri, 11 Feb 2011 04:34:26 -0800
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
Note Submitter: svenmail at o2 dot pl
----
Why it didn't work?
<?php
$tab1= array(array(10,7), array(5,8,3));
function user_sum($value, $key, &$tab_sum)
{
$tab_sum[$key]=array_sum($value);
}
$sum=array();
array_walk($tab1 'user_sum', $sum);
?>