Connecting Tech Pros Worldwide Forums | Help | Site Map

implode function in JavaScript

Bosconian
Guest
 
Posts: n/a
#1: May 10 '06
I'm looking for an implode function like the one found in PHP.

I could write my own, but am wondering if something already exists.



Bosconian
Guest
 
Posts: n/a
#2: May 10 '06

re: implode function in JavaScript


"Bosconian" <bosconian@planetx.com> wrote in message
news:Ec2dneo-kLp4yvzZnZ2dnUVZ_tGdnZ2d@comcast.com...[color=blue]
> I'm looking for an implode function like the one found in PHP.
>
> I could write my own, but am wondering if something already exists.
>
>[/color]

Found it.

arrayObject.join(separator)


Matt Kruse
Guest
 
Posts: n/a
#3: May 10 '06

re: implode function in JavaScript


Bosconian wrote:[color=blue]
> I'm looking for an implode function like the one found in PHP.[/color]

It would be helpful if you would explain what implode does in PHP, as many
here may not be familiar with it.
[color=blue]
> I could write my own, but am wondering if something already exists.[/color]

I think array.join is what you're looking for.

--
Matt Kruse
http://www.JavascriptToolbox.com
http://www.AjaxToolbox.com


Closed Thread


Similar JavaScript / Ajax / DHTML bytes