News for hackers. Stuff that matters.
Re:Ask HN: Why not PHP? by byoung2 on Friday October 22, 2010 @10:21PM (#1822330)
PHP's syntax is very random. There are over 5000 builtins and no consistency among them.

This is one thing that really annoys me about PHP...for example there is stripslashes() to remove slashes but strip_tags() to remove html tags. Why couldn't they be consistent about using the underscore or not using it. Another one is array_push($array,$var) which takes the array as the first argument and the $var to push as the second, whereas array_search($var,$array) has it in reverse.

Re:Ask HN: Why not PHP? by wanderr on Saturday October 23, 2010 @12:16AM (#1822613)
These complaints are valid, it is annoying but fortunately the docs are extremely easy to use.