FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » A Few Noob Questions
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
A Few Noob Questions [message #175127] Tue, 16 August 2011 15:02 Go to previous message
eBob.com is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to integrate paypal payment Indian currency support ..?
Next Topic: Looking for good C and C++ PHP plugin examples
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 21:13:33 GMT 2024

Total time taken to generate the page: 0.04380 seconds