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 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. 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 Link to comment https://forums.phpfreaks.com/topic/55932-solved-functions-in-general/#findComment-276229 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.