You are here: Re: Need A function which... « PHP Programming Language « IT news, forums, messages
Re: Need A function which...

Posted by Gandalf on 10/10/07 11:50

On Oct 10, 1:24 pm, "Shelly" <sheldonlg.n...@asap-consult.com> wrote:
> "Lars Eighner" <use...@larseighner.com> wrote in message
>
> news:slrnfgp99i.rb.usenet@debranded.larseighner.com...
>
>
>
> > In our last episode,
> > <1192010456.828186.125...@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

thanks, now that i see the answer it really was kine of a stupid
question

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация