Re: Insensitive names for classes
| From: | Colin Viebrock | Date: | Mon, 20 Aug 2001 15:48:52 +0000 |
| Subject: | Re: Insensitive names for classes | ||
| References: | 1 2 | Groups: | php.lang |
| Request: | Send a blank email to php-lang+get-199@lists.php.net to get a copy of this message | ||
Variable names in PHP are case sensitive. Function names, class names, and
class methods (really just functions) are not.
There is talk of making them sensitive too ... but you probably won't see it
until PHP 4.1 or 5.0. In other words, not for a while. :)
Namespaces are also being considered for 4.1, which might solve your problem
too. But again, not for a while.
You will need to come up with a work-around in the meantime, which probably
means renaming some of your functions or converting strings to lowercase
before comparing them.
- Colin