26
cgxxx
8y

php coder since 1999. Still don't remember which explode() param come first.
Just me or everyone else ? :/

Comments
  • 1
    I can never remember either, but I'm usually coding PHP with an IDE so it tells me which one comes first
  • 2
    You're not alone! Also wondering why the foreach statement in Php is backwards compared to many other languages.
  • 0
    Ha, yeah. There is no consistency with core functions. Sometimes the string is first, then args, sometimes the args are first, then string.
  • 1
    I remember it cause most php functions are needle, haystack. replace functions are usually needle, replace, haystack. but I probably just got that memorized from messing up the order so many times before
  • 0
    Heh. So true. 😄👍
Add Comment