View Single Post
Old 06-14-2022, 03:47 PM  
redwhiteandblue
Bollocks
 
redwhiteandblue's Avatar
 
Industry Role:
Join Date: Jun 2007
Location: Bollocks
Posts: 2,792
Quote:
Originally Posted by sarettah View Post
Be careful using short codes. They require an ini setting that is not always turned on. So code that works on one server may not work on another.

It can also lead to some issues when dealing with xml which also uses an <? ?> Syntax.

.
You're talking about short open tags - <? ... ?> which are possibly being deprecated.

The short echo tags <?= ... ?> are not dependent on an ini setting https://www.php.net/manual/en/langua...ax.phptags.php and there's no proposal to deprecate them.
They are actually line 1 of the PSR-1 coding standard https://www.php-fig.org/psr/psr-1/

Not that anyone actually follows that...
redwhiteandblue is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote