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.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.

DMCA.com Protection Status