Created
June 9, 2018 17:20
-
-
Save crunchywelch/1799d853e5afc5be5f2ba425eb1a1bc8 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/php | |
<?php | |
function is_upper_AZ($x) { | |
return preg_match('/^[A-Z]/', $x); | |
} | |
if(is_upper_AZ($argv[1])) { | |
echo 'true'; | |
} | |
else { | |
echo 'false'; | |
} | |
echo "\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment