[PHP][Tutorial]Functions

if statements depends on how they are needed

Code:
$this == true ? 'TRUE' : 'FALSE'

i generally use inside echo or variables declerations... since it would be a waste of time to do a full if statement.

and others like

Code:
if ($this == TRUE ) Die();
else {
     echo 'it is not true';
     echo 'probably false then';
}

of

Code:
foreach ($this as $this1 => $this2) {
    if ($this2 == TRUE) continue;
    echo 'FALSE STUFF';


}
 
Back