Possible Duplicate:
Reference - What does this symbol mean in PHP?
What is the ?: Operator and what does it do?
The three different equals (=, ==, ===)
Can some explain how this works?
$xblgold = $xblgold == 1 ? "Yes" : "No";
echo $xblgold;
Possible Duplicate:
Reference - What does this symbol mean in PHP?
What is the ?: Operator and what does it do?
The three different equals (=, ==, ===)
Can some explain how this works?
$xblgold = $xblgold == 1 ? "Yes" : "No";
echo $xblgold;
 
    
     
    
    It is a alternative if else construction.
You can write it also like:
if($xblgold == 1) {
    $xblgold == "Yes";
} else {
    $xblgold == "No";
}
 
    
    it´s the same as
if($xblgold == 1){
   $xblgold = "Yes";
}else{
   $xblgold = "No";
}
