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