Jump to content


Photo

functions


  • Please log in to reply
1 reply to this topic

#1 ReVeR

ReVeR
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 07 March 2006 - 03:57 AM

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

#2 DylanBlitz

DylanBlitz
  • Members
  • PipPipPip
  • Advanced Member
  • 99 posts
  • LocationOC Baby!

Posted 07 March 2006 - 04:49 AM

[!--quoteo(post=352381:date=Mar 6 2006, 07:57 PM:name=ReVeR)--][div class=\'quotetop\']QUOTE(ReVeR @ Mar 6 2006, 07:57 PM) View Post[/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.

<?php
function CallMe($phone, $time)
{
do function stuff here
return $result;
}


$data = CallMe($phone, $time);





?>





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users