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); 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. 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 Link to comment https://forums.phpfreaks.com/topic/65630-solved-return/#findComment-327760 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.