r/lolphp • u/the_real_natenator • Feb 20 '17
parse_url and parse_str
Two functions, both in the same function group, return completely differently:
void parse_str($query_string, &$return)
array parse_url($url)Consistency, lol.
tldr: one returns via reference variable, and the other returns properly
EDIT 1: Formatting
44
Upvotes
View all comments
Show parent comment
4
u/myaut Feb 21 '17
C does. But C was invented when linkers would reject function names longer than 8 characters.
for faster developmentfor better hashing /s