| View previous topic :: View next topic |
| Author |
Message |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Fri Sep 15, 2006 6:04 pm Post subject: trminating function |
|
|
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
|
Posted: Fri Sep 15, 2006 6:31 pm Post subject: |
|
|
|
|
| Back to top |
|
 |
leon_pegg
Joined: 12 Jun 2006 Posts: 113 Location: hemel / UK
|
Posted: Fri Sep 15, 2006 6:49 pm Post subject: |
|
|
| thort it was thanks |
|
| Back to top |
|
 |
|