Created
February 25, 2014 18:15
-
-
Save iraSenthil/9214601 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
function main() | |
{ | |
function1 hello | |
function2 world | |
} | |
# If you call the main function here, You will get an error. It hasn't parsed function1 and function2 functions yet | |
function function1($arg) | |
{ | |
echo "function1:$arg" | |
} | |
function function2($arg) | |
{ | |
echo "function2:$arg" | |
} | |
#now all functions are accounted for, so go ahead and call | |
main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment