note 102381 added to function.array-walk
| From: | svenmail at o2 dot pl | Date: | Fri, 11 Feb 2011 08:11:48 +0000 |
| Subject: | note 102381 added to function.array-walk | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-176884@lists.php.net to get a copy of this message | ||
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);
?>
----
Server IP: 82.177.164.100
Probable Submitter: 77.255.230.6
----
Manual Page -- http://www.php.net/manual/en/function.array-walk.php
Edit -- https://master.php.net/note/edit/102381
Del: integrated -- https://master.php.net/note/delete/102381/integrated
Del: useless -- https://master.php.net/note/delete/102381/useless
Del: bad code -- https://master.php.net/note/delete/102381/bad+code
Del: spam -- https://master.php.net/note/delete/102381/spam
Del: non-english -- https://master.php.net/note/delete/102381/non-english
Del: in docs -- https://master.php.net/note/delete/102381/in+docs
Del: other reasons-- https://master.php.net/note/delete/102381
Reject -- https://master.php.net/note/reject/102381
Search -- https://master.php.net/manage/user-notes.php