Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jul 292010

Is PHP's function name case-sensitive or case-insensitive?


In PHP, the names of user defined classes/functions, as well as those built in language constructs/keywords such as echo, while, etc., are ALL case-insensitive, e.g.

echo "foo";
ECHO "foo";
eCho "foo";

They are all the same.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>