Absurdism corner

Why?


  • Total voters
    203

yqx1eujbnlw61.jpg
 
Ok, here is a good one for programmers: Guess what it does print?

PHP:
<!DOCTYPE html>
<html>
<body>

<?php
$arg = 'YES';
$vehicle = ( ( $arg =='YES')? 'train' :
             ( $arg =='NO' )? 'car' :
             ( $arg =='NO' )? 'horse' :
           'feet' );
echo $vehicle;
?>

</body>
</html>

Try it out yourself with an online PHP program:
 
Back
Top