for loop - PHP - Break after return? -
Do I need to use a break here or will it stop stopping and should be back only once? Returned incorrectly to { Thanks! This will run only once, stop planting and exit the function / method. It can be argued that this is a bad style
($ I = 0; $ i & lt; 5; $ i ++); // break; }
return later, which is bad for debugging and maintenance, it is very easy to ignore. Using
break may be cleaner:
Comments
Post a Comment