Movies as code - Free your coding mind...

"Unfortunately, no one can be told what the Matrix is. You have to see it for yourself."

Morpheus, The Matrix

May 14, 2011 | Action | submitted by Ben Howdle

Die Hard


    $characters = array();
   
    $characters['good'] = 'John McClane';
    $characters['bad'] = 'Hans Gruber';
   
    $situation = 'Hostage situation';
   
    if($situation == "Hostage situation"){
        echo "Winner = " . $characters['good'];
        echo "Loser = " . $characters['bad'];
    }
    else {
        $didNotFallOfARoof = $characters['bad'];   
    }

?>
Vote up this code0