Hacker News new | ask | show | jobs
by colecut 2128 days 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.