if(true):
echo 'good';
endif;
I’ve only see it in PHP today!
I’ve always been using:
if(true)
{
echo 'good';
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is the Alternative syntax for control structures.
Quoting that page of the manual :
I don’t often see it used in “pure PHP” files, but it’s quite often used when PHP is mixed with HTML in the same file — i.e. when used as a templating language.