halm1985 Posted August 18, 2007 Share Posted August 18, 2007 What does RETURN actually return if used by it self inside a function ? example : <?php # Result Varibles to GLOBALS function globals($rs) { if ( !$rs || !mysql_num_rows($rs) ) { echo "No result"; return; } # WHAT DOES RERUN HERE DO ? $row = mysql_fetch_array($rs); Quote Link to comment https://forums.phpfreaks.com/topic/65630-solved-return/ Share on other sites More sharing options...
Masna Posted August 18, 2007 Share Posted August 18, 2007 It kills the function. That is, it tells the function to stop there and not run through the rest of the code in the function. Quote Link to comment https://forums.phpfreaks.com/topic/65630-solved-return/#findComment-327756 Share on other sites More sharing options...
halm1985 Posted August 18, 2007 Author Share Posted August 18, 2007 Thx alot man Quote Link to comment https://forums.phpfreaks.com/topic/65630-solved-return/#findComment-327760 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.