You are here: Re: inserting elements within an array « PHP Programming Language « IT news, forums, messages
Re: inserting elements within an array

Posted by Hendri Kurniawan on 04/20/07 00:13

Geoff Berrow wrote:
> Message-ID: <132fone41inqp4b@corp.supernews.com> from Hendri Kurniawan
> contained the following:
>
>>> What is the easiest way to insert the element "|" between the elements
>>> of the array so that the result is
>>>
>>> array("a", "|", "b", "|", "c", "|", "d");
>>>
>>> ? Thanks, - Dave
>>>
>> Easiest, IMHO $my_arr = explode(',', implode(',|,', $my_arr));
>> But someone in this NG bound to find a better way to do it :D
>
> The question is /why/ does he want to do it?
>

hehehe... yeah... i forgot to ask why.... :D
Well...

Hendri Kurniawan

 

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

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