Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Returning a sum:
SUBMITTED BY:
henry1874w
DATE:
June 25, 2017, 2:39 p.m.
FORMAT:
Text only
SIZE:
126 Bytes
Raw
Download
Tweet
HITS:
229
Go to comments
Report
<?php
function myfunction($v1,$v2)
{
return $v1+$v2;
}
$a=array(10,15,20);
print_r(array_reduce($a,"myfunction",5));
?>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus