Categories
PHP / MySQL

PHP7 – Removed alternative PHP tags

The alternative PHP tags <% (and <%=), %>, <script language=”php”>, and </script> have been removed in PHP7.

Additionally the asp_tags ini directive is removed. Trying to enable asp_tags will result in a core error.

If your code relied upon these alternative tags, then they need to be updated to either the normal or short opening and closing tags.

Still we have support forĀ  short opening tags (<?) or short opening tags with echo (<?=).

That is it.

By Arjun

I am Arjun from Hyderabad (India). I have been working as a software engineer from the last 7+ years, and it is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.

Leave a Reply

Your email address will not be published. Required fields are marked *