Sr. PHP Programmer Question:
What is the purpose of break statement?
Answer:
break terminates the for loop or switch statement and transfers execution to the statement immediately following the for loop or switch.
Previous Question | Next Question |
How will you locate a string within a string in PHP? | What are rules for naming a PHP variable? |