Last active
September 10, 2022 00:14
-
-
Save denstream-io/b0a43eb59c14c1fceb3060cdbe17edb3 to your computer and use it in GitHub Desktop.
hello world php
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
<?php | |
function main() { | |
$name = (string)readline("What's your name? "); | |
echo hello($name); | |
} | |
function hello(string $to="world") { | |
return sprintf('hello, %s', $to); | |
} | |
main() | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment