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

Posted by Lars Eighner on 10/10/07 10:11

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.

--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 468 days to go.
What do you do when you're debranded?

 

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

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