Possible Duplicate:
Are PHP short tags acceptable to use?
Which is better to use, or considered better practice: <?php or <?. I’ve always wanted to know. Or is it more of a preference for the programmer.
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.
<?phpis the official standard. I’ve never encountered a problem where a browser was confused, but just using<?can also declare XML and might not be the best habit to form.I’ll tell you this though – other programmers will always appreciate the standard. I would go with
<?phpfor sure.