A Few Noob Questions [message #175127] |
Tue, 16 August 2011 15:02 |
eBob.com
Messages: 11 Registered: August 2011
Karma:
|
Junior Member |
|
|
Is "script" official terminology in PHP? The book I am reading says
"Built-in superglobal variables are visible everywhere within a script." but
has never explicitly defined "script". (Although there is a hint that maybe
everything between tags is a script.)
How can the "units" of PHP between tags communicate? Can my PHP code create
$GLOBALS variables? How about $_SESSION variables?
The book gives the following example of a ternary operator:
($grade >= 50 ? 'Passed" : "Failed")
I don't understand the function of the enclosing parentheses. The official
doc at php.net doesn't seem to suggest that the parentheses are necessary.
Just to make sure, "@" only suppresses MESSAGES. It does not interfere with
try/catch logic/code. Right?
Thanks very much.
Bob
|
|
|