Code mnemonics: PHP implode/explode Jun22 '05
Feedback
RSS feed for comments on this post
Leave feedback
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 1): 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).