You are here: Re: Inserting into an array... « PHP Programming Language « IT news, forums, messages
Re: Inserting into an array...

Posted by shimmyshack on 03/23/07 13:47

On 23 Mar, 13:46, "shimmyshack" <matt.fa...@gmail.com> wrote:
> On 23 Mar, 13:30, "Sonnich" <sonnich.jen...@elektrobit.com> wrote:
>
> > Hi
>
> > if I have an array of [a, b, d] and want to insert c, what is the way
> > then?
>
> > Sonnich
>
> $array = array('a','b','d');
> $array[] = 'c';
>
> //and if you want the array to be sorted alphabetically then use
> sort($array);
>
> //view result
> //print_r($array);

you just pipped me Erwin - soz!

 

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

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