gnope php gtk gui gnope.org  

trminating function

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Fri Sep 15, 2006 6:04 pm    Post subject: trminating function Reply with quote

i have a function say :-

function test($id){
if ($id == 1){
echo 'yay';
} else {
echo 'nay';
}
}

if i want to end the function after the echos without returning anything how would i do that?
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Fri Sep 15, 2006 6:31 pm    Post subject: Reply with quote

Code:
return;
Back to top
leon_pegg



Joined: 12 Jun 2006
Posts: 113
Location: hemel / UK

PostPosted: Fri Sep 15, 2006 6:49 pm    Post subject: Reply with quote

thort it was thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.