RE: [PHP] IE7 => end tag?

From: Date: Fri, 18 May 2007 13:31:21 +0000
Subject: RE: [PHP] IE7 => end tag?
Groups: php.general 
Request: Send a blank email to php-general+get-255129@lists.php.net to get a copy of this message
> > The extra comma at the end of the array definition is still > valid syntax in > PHP. Try for yourself: > > php -r '$a = array("a" => "foo", "b" => > "bar",); print_r($a);' Interesting. Do you mean 'Valid Syntax' in that it 'works without error', or 'Valid Syntax' in that 'it was designed to work that way'? If the former, then I would argue as to whether it is valid syntax, since depending on it would be dangerous. If the latter, then I have learned something new, and I'd like to know more about why it is designed to work that way, and how I could use it to my advantage. > > NULL is a special type that means just that: > http://uk.php.net/manual/en/language.types.null.php > > Enclosing it in quotes will define it as a string, something entirely > different. I am aware of what a NULL is. I suggested the quotes as a troubleshooting step, since code prior to the NULL was not being displayed. A 'knee jerk' suggestion, I concede. (Feel free to substitite your own descriptive phrase for 'knee jerk' if you must) :-) JM

« previous php.general (#255129) next »