3 ms·
The creator of PHP addressed the "function arguments not consistent" issue in a YouTube video called 25 years of php. PHP is basically a wrapper of C modules.
by colecut 6y ago
The creator of PHP addressed the "function arguments not consistent" issue in a YouTube video called 25 years of php.
PHP is basically a wrapper of C modules.
String functions are ($haystack,$needle)
Array functions are ($needle, $haystack)
Because that's the way the underlying modules worked. I had used PHP for a long time without realizing this.