Half the functions are based on C, half the functions are based on Perl. There's no regularity or consistency.
Recently, a third half of it was based on Java. :-)
Re:Google App Engine finally supports PHP
by jasonlotito on Saturday May 18, 2013 @10:21AM
(#5728971)
I don't know. Other languages have become successful following that same path. See objective-c as a perfect example, though in obj-c's case, it only became popular because of the platform it was used on.
The benefit there is understanding. With PHP, knowing the C functions mean I understand how the PHP function works. The same with obj-c, I can drop down into C and work there. And the change in syntax, the way things works, helps me understand what is going on. Again, knowing C, I can do things in obj-c without needing to learn the obj-c part.
Maybe I'm one of the few, but context matters more than consistency. Maybe that's why I like vim.
Yeah, the standard libs lack consistency but that is annoying for about the first 1-2 months and then you get used to it.
However, a lot of modern PHP frameworks(Doctrine, Symfony2) are quite nice to work with.
The insane part of PHP is the actual language. It's an overgrown template language. Half the functions are based on C, half the functions are based on Perl. There's no regularity or consistency.