View Single Post
Old 06-11-2008, 09:43 PM   #1 (permalink)
Dave
The Acquainted
 
Dave's Avatar
 
Join Date: Apr 2008
Posts: 110
Thanks: 97
Dave is on a distinguished road
Default Using ISSET()...How does this line of code work?

I got the code below from PHP: Hypertext Preprocessor, under the ISSET() topic. It was a "contribution" to the subject from a reader, and it did not have any accompanying comments.

It looks interesting, but can anyone explain to a person with little experience (such as I) how it works?


PHP Code:
$var = (isset($var) && $var) ? $var 'new value'
Thanks,
Dave
Dave is offline  
Reply With Quote