loading...

re: What do you dislike about your favorite language? VIEW POST

FULL DISCUSSION
 

PHP is wonderful and you can very quickly get things running. The most recent updates to the language are amazing and I'm loving all the new things that I can do like arrow functions and type hinting on class variables.

The one thing that annoys me a lot about PHP is the completely inconsistent names and argument order for built-in functions.

Look at this:

  • str_replace()
  • strtolower()

Why does one have an underscore and the other doesn't? It feels like there is a lot of legacy code still there.

code of conduct - report abuse