Sr. PHP Programmer Question:

Download Job Interview Questions and Answers PDF

What is the purpose of break statement?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

break terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch.

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
How will you locate a string within a string in PHP?What are rules for naming a PHP variable?