Created
October 12, 2016 21:49
-
-
Save eyemyth/1cc944c4d80a346bf2734fef329544a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env php | |
<?php | |
$arg = 'T'; | |
$vehicle = ( ( $arg == 'B' ) ? 'bus' : | |
( $arg == 'A' ) ? 'airplane' : | |
( $arg == 'T' ) ? 'train' : | |
( $arg == 'C' ) ? 'car' : | |
( $arg == 'H' ) ? 'horse' : | |
'feet' ); | |
echo $vehicle; | |
echo ($arg == 'H')?1:0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment