Will return break loop?

From: Date: Wed, 11 Sep 2002 21:57:14 +0000
Subject: Will return break loop?
Groups: php.general 
Request: Send a blank email to php-general+get-116045@lists.php.net to get a copy of this message
Really quick question. Will "return" break a loop inside a function? Example.. myfunc() { while($val=0) { if ($i=128) { return true; //<-break or no? } } } I know I could easily figure this out my own but I do not have the means to test it right now. :) Much thanks! Kevin

« previous php.general (#116045) next »