Re: PHP & Case Sensitivity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 04 November 2002 07:25, Graeme McLaren wrote:
> Hey all, I've had a bizarre experience.  When I uploaded a php script it
> worked fine and when I was looking through my code I found that it
> shouldn't have worked because two variables had been used instead of
> one.  What I'm meaning is, I used $Year and $year where I was just
> supposed to use $Year, the case insensitivity didn't seem to make a
> blind bit of difference.  I've corrected it now and the script runs as
> it did previously.
>
> Did PHP just correct this at run time?  Anyone know why this worked?

PHP is case-sensitive for variables. There are two possibilities:

1) Your code is buggy
2) PHP is buggy

I suspect it's the former :) but if you think it's the latter then post your 
code here.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *


/*
One big pile is better than two little piles.
		-- Arlo Guthrie
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux