Code mnemonics: PHP implode/explode Jun22 '05
Feedback
# (2 of 2): Thomas Stach » nextek.de
3 years, 4 months after the fact. (Sun 16 Nov 2008, 10:49 AM CST)
The implode equivalent in javascript is called "join"
RSS feed for comments on this post
Leave feedback
matthom
is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago.
Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.
I’ve come up with some mnemonics for remembering the difference between the PHP functions, implode and explode, since I always confuse them, in my head.
You are at the feedback permalink page for: Code mnemonics: PHP implode/explode
# (1 of 2): Jennifer Grucza » jennifergrucza.com
1 day, 2 hours after the fact. (Thu 23 Jun 2005, 11:48 AM CST)
I prefer "split" to "explode", which is what Java and Javascript and some other languages use. Don't think there's any built-in "implode" functionality in Java or Javascript, though... just have to iterate over the array yourself or write a function to do that.
To remember explode vs. implode, I think I'd just think about taking one string, exploding it into many little pieces (of an array).