Die Hard

<?php
    $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
  • Typos

    $didNotFallOffARoof *