View Single Post
Old 06-01-2014, 02:58 PM  
edgeprod
Permanently Gone
 
Industry Role:
Join Date: Mar 2004
Posts: 10,019
Also note that the notation syntax doesn't affect the outcome:

$var = 7;
$result = ($var == 7) ? true : false;
$result = ($var === 7) ? true : false;
$result = ($var === '7') ? true : false;

Versus

if ($var == 7) {
return true;
} else {
return false;
}
edgeprod is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote