Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

return false inside loop of function php

for($i = 0; $i < 5; $i ++) {
    if($var[$i] === '')
     { set_some_condition; 
       break;
     }
}

if (some_condition)
 return;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #false #loop #function #php
ADD COMMENT
Topic
Name
7+8 =