Skip to content

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.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments