Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create a php cli tool that takes a name as argument and estimates the age based on the name.
- // Use the following api: https://agify.io/
- // You cannot use any kind of libraries, it all must be vanilla PHP code and should not contain more that 30 lines of code.
- // Ex:
- // $ php estimate-age.php Casper
- // should output: You must be around 38 years old
- // $ php estimate-age.php 1234
- // should output: Could not estimate your age
- // $ php estimate-age.php
- // should output: You must pass a name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement