| 
 Posted by Shelly on 10/10/07 11:24 
"Lars Eighner" <usenet@larseighner.com> wrote in message  
news:slrnfgp99i.rb.usenet@debranded.larseighner.com... 
> In our last episode, 
> <1192010456.828186.125800@v3g2000hsg.googlegroups.com>, 
> the lovely and talented Gandalf 
> broadcast on comp.lang.php: 
> 
>> Hi everyone, I'm looking for a function which combine int values from an 
>> array (or a string). 
> 
>> example: 
> 
>> $x[0]=5; 
>> $x[1]=2; 
>> $x[2]=3; 
> 
>> $y= *needed_function($x); 
>> echo $y // suppose to return 10 
> 
> 
> You know if you even glanced at the function index in the manual, 
> array_sum would have jumped out at you. 
 
Even without having array_sum, writing such a function is so trivial that it  
makes you wonder if the op has ANY programming experience. 
 
> 
> --  
> Lars Eighner     <http://larseighner.com/>  
> <http://myspace.com/larseighner> 
>                         Countdown: 468 days to go. 
 
Is 468 the number of days left until we finally get rid of the dumbo in the  
oval office? 
 
Shelly
 
[Back to original message] 
 |