[PHP] exit() function question

2002-09-03 Thread Renato Lins
Why exit() funtion always exit with 255 value instead of the passed value, in php 4.2.2, even when I compile with --enable-cli. Check the code bellow, to see # cat t3.php #!/usr/src/php-4.2.2/php ?php echo Version: ,phpversion(),\n; exit(1); ? # ./t3.php ; echo last run exit value:$? Version:

Re: [PHP] exit() function question

2002-09-03 Thread Tom Rogers
Hi, Wednesday, September 4, 2002, 1:30:49 AM, you wrote: RL Why exit() funtion always exit with 255 value instead of the passed RL value, in php 4.2.2, even when I compile with --enable-cli. RL Check the code bellow, to see RL # cat t3.php RL #!/usr/src/php-4.2.2/php RL ?php RL echo Version:

RE: [PHP] Exit Function

2001-02-01 Thread Boget, Chris
What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } function FooBar() { if ($foo = $bar) return 0; } ## otherwise execute the rest of this function } Chris

Re: [PHP] Exit Function

2001-01-31 Thread Josh G
day, February 01, 2001 9:39 AM Subject: Re: [PHP] Exit Function On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function

Re: [PHP] Exit Function

2001-01-31 Thread Steve Smith
On Wed, 31 Jan 2001, Karl J. Stubsjoen wrote: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } Use "return". If you want your function to return a

[PHP] Exit Function

2001-01-31 Thread Karl J. Stubsjoen
What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Exit Function

2001-01-31 Thread Chris Lee
function some($foo, $bar) { if ($foo != $bar) return ; ... } -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Karl J. Stubsjoen"" [EMAIL PROTECTED] wrote in message 004701c08bd5$eecbc340$0afc020a@kstubsjoen">news:004701c08bd5$eecbc340$0afc020a@kstubsjoen... What is

Re: [PHP] Exit Function

2001-01-31 Thread Martin A. Marques
El Mi 31 Ene 2001 19:34, Karl J. Stubsjoen escribi: What is the way to exit a function? For example: function FooBar() { if ($foo = $bar) Exit_this_Function; ## otherwise execute the rest of this function } return is what you want. -- System Administration: It's a