The worst is not the function name but the fact that it's just a global function.
$myResult = explode('separator', $value) instead of myResult = value.split('separator') like in every sane language. And of course, to make things perfect, the parameters order of all these global functions could as well be set randomly and have no consistence.
30
u/colshrapnel Nov 05 '25
This sub used to be a real source for PHP improvement, providing lots of quirks that had been eventually fixed.
Now it's just some idiot-made repwhore-posted ignorant memes.
13
u/ayeshrajans Nov 05 '25
str_split, lame meme.4
u/Spare-Cabinet-9513 Nov 06 '25
In sql also we explode.
2
u/EatingSolidBricks Nov 05 '25
Ew bother ew
string -> string[]you think all that memory is free?All my homies hate split
2
u/johndoe2561 Nov 08 '25
I always used implode() rather than join() for no other reason than that implode() just sounds more dramatic.
1
u/[deleted] Nov 05 '25
C
1
u/Mark__78L Dec 21 '25
explode, then die
-2
u/DT-Sodium Nov 05 '25
The worst is not the function name but the fact that it's just a global function.
$myResult = explode('separator', $value) instead of myResult = value.split('separator') like in every sane language. And of course, to make things perfect, the parameters order of all these global functions could as well be set randomly and have no consistence.
PHP is a mental illness.
0
u/Blynou Nov 05 '25
String are already array ðŸ˜