How can i echo a string that contains the php tags
whenever I write this in my IDE, it just assumes they are part of the PHP code.
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.
If your IDE has some quirk (from your question specificity I’d assume it’s just a syntax highlighting glitch), then you can use partial / concatenated strings for comparison:
This actually used to be a workaround for PHP3, which used a simpler tokenizer and didn’t allow bare
?>in string context.