by simon baird

Tuesday, August 18, 2009

Starting to learn why no-one around here likes PHP...

These similar php functions have params in THE EXACT OPPOSITE ORDER.

    bool array_key_exists ( mixed $key , array $search )

    bool property_exists ( mixed $class , string $property )

Stick THAT up your PAAMAYIM NEKUDOTAYIM. (Or "double colon" in phpspeak/Hebrew...)

Fremnet contributed some more examples:

No comments: