Skip to content

Instantly share code, notes, and snippets.

@iraSenthil
Created February 25, 2014 18:15
Show Gist options
  • Save iraSenthil/9214601 to your computer and use it in GitHub Desktop.
Save iraSenthil/9214601 to your computer and use it in GitHub Desktop.
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