ReVeR Posted March 7, 2006 Share Posted March 7, 2006 Hello.I was wondering if i use functions are they called the first time they are created or do i need to call a function for it to get executed?thx Quote Link to comment https://forums.phpfreaks.com/topic/4292-functions/ Share on other sites More sharing options...
DylanBlitz Posted March 7, 2006 Share Posted March 7, 2006 [!--quoteo(post=352381:date=Mar 6 2006, 07:57 PM:name=ReVeR)--][div class=\'quotetop\']QUOTE(ReVeR @ Mar 6 2006, 07:57 PM) [snapback]352381[/snapback][/div][div class=\'quotemain\'][!--quotec--]Hello.I was wondering if i use functions are they called the first time they are created or do i need to call a function for it to get executed?thx[/quote]You declare a function and then call it whenever you want to use it.[code]<?phpfunction CallMe($phone, $time){do function stuff herereturn $result;}$data = CallMe($phone, $time);?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/4292-functions/#findComment-14950 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.