SyntaxFix
Write A Post
Hire A Developer
Questions
Declaring inside the loop limits the scope of the respective variable. It all depends on the requirement of the project on the scope of the variable.