Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

When are you supposed to use endif to end the conditional statement?

PHP Interview Question
PHP Interview Question

Answer:

When the original if was followed by : and then the code block without braces.

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
WHAT IS THE FUNCTIONALITY OF THE FUNCTIONS STRSTR() AND STRISTR()?How can we send mail using JavaScript?