PHP Questions Home | Register | Login
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

What is the difference between join and implode in PHP?


Well, you will be fascinated to know that these are just variants of the same thing, so you can use whichever you prefer.

Some people get confused between implode and explode, but find 'join' more intuitively easy to remember that they use it to combine things together. If that's the case then use 'join'.

Having gone through a number of PHP books it seems that implode is the one that tends to get used the most. Unless the book's been written by someone who also uses Perl a lot (or more), in which case they'll probably stick with join!

Comments on this Question/Answer

What is difference between join & implode in php?
By: nilesh, 11 Sep 2009 05:54:07



Reply to comments / post your own comment >>>

ASK A QUESTION

More strings PHP Questions

how to compare strings in PHP?

How do I one-way encrypt a string in PHP?

How do I make the first letter of each word upper case?

How do I display newline characters on a webpage?

How do I print the " in an echo statement?



Custom Search