5 ms·
Care to disagree. E.g.: array_map (callable $callback, array $array1 [, array $... ] ) and array_filter (array $array [, callable $callback [, int $flag = 0 ]])
by bopinto 10y ago
Care to disagree. E.g.:
array_map (callable $callback, array $array1 [, array $... ] )
and
array_filter (array $array [, callable $callback [, int $flag = 0 ]])
Both are operations over an array, but the arguments aren't in the same order. I understand the why, but it is not consistent and (in my opinion) wrong, from a point of view of writing a language. This also makes it more difficult for someone to learn the language, as it was said.
Let me add that Rasmus admitted he didn't know how to write programming languages, when he wrote PHP. He just wanted something that was easy and fast for web designers to learn.
That said, PHP is my go-to language when I what to get up something fast and with not much server side logic.
- colshrapnel 10y agoI've got a real good advise for you. Get yourself a good IDE with a code-completion feature. Trust me, the very next day you'll forget your grief :)