question about functions
Posted: Tue Jul 02, 2002 7:31 pm
I need to write a block of code and use it over and over in my script with a simple declaration. Kind of like functions in Javascript. Somthing like
function fizzlePants {
echo "blah"
}
if(blah) {
return fizzlePants
}
I know that wont work at all but its the concept im after. Can anyone help?
function fizzlePants {
echo "blah"
}
if(blah) {
return fizzlePants
}
I know that wont work at all but its the concept im after. Can anyone help?