Interview Questions
Q.

What is the alternative structure for control structures?

 


Answer :
Php provides alternative structure for Some of the control structures namely, if, while, for, foreach, and switch .In alternate syntax is to change the opening brace to a colon (:) and the closing brace to endif;, endwhile;, endfor;, endforeach;, or endswitch;, respectively.
Example:

A is equal to 8
Posted By : akash
Post Answer :  
Answer * :
Are You? Already a Member New User
   
User Name / Email * :
Password * :
Security Code * :

(Enter security code above shown on image)