RE: IE7 => end tag?

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

 



> 
> 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

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux