Connecting Tech Pros Worldwide Help | Site Map

implode function in JavaScript

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 10th, 2006, 03:18 AM
Bosconian
Guest
 
Posts: n/a
Default implode function in JavaScript

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.



  #2  
Old May 10th, 2006, 05:15 AM
Bosconian
Guest
 
Posts: n/a
Default 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)


  #3  
Old May 10th, 2006, 05:15 AM
Matt Kruse
Guest
 
Posts: n/a
Default 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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.