Exit();

From: Date: Thu, 04 Apr 2002 15:24:36 +0000
Subject: Exit();
Groups: php.general 
Request: Send a blank email to php-general+get-91530@lists.php.net to get a copy of this message
Hello, I'm using recursive functions and call a function from inside another one. The problem is that when I call the Exit(); function the whole program is aborted. How can I quit just the current function, not the whole program ? <example> Function One() { If (!$var) { Exit(); } } Function Two(); { One(); //This line kills the program Print("Hello"); //This is not printed =( } </example> TIA, ______________________ Mauricio Cuenca

« previous php.general (#91530) next »