2 ms·
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
by byoung2 16y ago
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.
- wanderr 16y agoThese complaints are valid, it is annoying but fortunately the docs are extremely easy to use.