MasterACE14 Posted June 17, 2007 Share Posted June 17, 2007 is it possible to use functions within functions? example: <?php function line() { <hr> } function randnum() { $rand = rand(0,5); echo($rand); } function allfunctions() { line(); randnum(); line(); } allfunctions(); ?> Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/55932-solved-functions-in-general/ Share on other sites More sharing options...
wildteen88 Posted June 17, 2007 Share Posted June 17, 2007 Yes of course you can. Have you not tried it? Just make sure you define the function before you use it. Quote Link to comment https://forums.phpfreaks.com/topic/55932-solved-functions-in-general/#findComment-276226 Share on other sites More sharing options...
MasterACE14 Posted June 17, 2007 Author Share Posted June 17, 2007 ok, thanks. , curiosity leads me to ask all soughts of noobish questions Regards ACE Quote Link to comment https://forums.phpfreaks.com/topic/55932-solved-functions-in-general/#findComment-276229 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.