|
Posted by Geoff Berrow on 04/19/07 23:03
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?
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|