Jump to content

Archived

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

ReVeR

functions

Recommended Posts

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

Share this post


Link to post
Share on other sites
[!--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]

Share this post


Link to post
Share on other sites

×

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.