PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Sep 20, 2019 2:06 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Jun 15, 2013 12:43 am 
Offline
Forum Newbie

Joined: Wed Mar 06, 2013 1:47 am
Posts: 3
hello all,
i am new in php development,and i do not know hohw to make any function an any one told me how i will do this?

thanks in advance


Top
 Profile  
 
PostPosted: Sat Jun 15, 2013 12:49 am 
Offline
Forum Contributor

Joined: Fri Nov 07, 2008 6:31 am
Posts: 230
Location: Nashik, India
Refer: http://www.php.net/manual/en/functions.user-defined.php

_________________
|


Top
 Profile  
 
PostPosted: Mon Jan 06, 2014 4:45 am 
Offline
Forum Newbie

Joined: Wed Oct 02, 2013 1:03 am
Posts: 10
LOL...
What sort of question is this .... you will always find this answer....although your new next time make sure you google these doubts....

Heres your answer....
<?php
function writeMsg()
{
echo "Hello world!";
}

writeMsg(); // call the function
?>


Top
 Profile  
 
PostPosted: Mon Jul 28, 2014 5:37 am 
Offline
Forum Newbie

Joined: Fri Jul 18, 2014 6:21 am
Posts: 5
Hi,
You should try this code to call any function
<?php
function foo($arg_1, $arg_2, /* ..., */ $arg_n)
{
echo "Example function.\n";
return $retval;
}
?>

Thanks I hope it will help you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group