note 102381 rejected from function.array-walk by thiago
| From: | thiago@php.net | Date: | Fri, 11 Feb 2011 12:34:26 +0000 |
| Subject: | note 102381 rejected from function.array-walk by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-176894@lists.php.net to get a copy of this message | ||
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);
?>