mpunkth
#1
I noticed a strange behaviour while this Excercise: https://www.codecademy.com/courses/learn-php/lessons/logical-operators-and-compound-conditions/exercises/the-not-operator
When I call th function with a typo in my function call:
The function ist still executed. O_o
Is there something like auto-correct in PHP or the codecademy Plattform?
Not so much auto-correct, rather the fact that function names are case-insensitive in PHP.
Function names are case-insensitive for the ASCII characters A
to Z
, though it is usually good form to call functions as they appear in their declaration.
http://www.php.net/manual/en/functions.user-defined.php
So that’s for function names. Note that variables names, however, are case-sensitive.
1 Like