PhpStorm 2019.3 Help

Code Inspection: 'for' loop may be replaced by 'while' loop

Reports for loopswhich contain neither initialization or update components, and can thus be replaced bysimpler while statements.

Use the checkbox below if you wish this inspection to ignore for loops with trivial or non-existent conditions.

Last modified: 20 February 2020