PHP Questions Home

Categories

Arrays
Files
Forms
Functions
Images
MySQL
Numbers
Others
Strings
Website


PHP Functions

PHP Functions


More PHP

Top Questions
Ask a Question

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!

More strings PHP Questions

What is the difference between ' and "?
How do I make the first letter of a string uppercase?
How do I join strings together?
How do I make the contents of a string upper case?
How do I make the first letter of each word upper case?