Jump to content

functions


ReVeR

Recommended Posts

[!--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]<?php
function CallMe($phone, $time)
{
do function stuff here
return $result;
}


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





?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/4292-functions/#findComment-14950
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.