06-11-2008, 09:43 PM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Apr 2008
Posts: 110
Thanks: 97
|
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
|
|
|
|