Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    Is it available in php 7? Commented Feb 27, 2018 at 20:33
  • 12
    Note that the final semi-colon is not required. But if, for whatever reason, you need to go back to classic tags, a simple project-wide search/replace <?= for <?php echo would'nt be enough. Anyway as of today I hope you guys doesn't have any production servers running PHP < 5.6 as this versions are not maintained anymore (PHP Supported Versions). Commented Dec 4, 2018 at 11:25
  • Important note: php echo shorthand (<?=) is not bound to short_open_tag directive! It can be used even if short_open_tag is disabled. you can't disable echo shorthand (<?=) at anyway. Commented Nov 10, 2024 at 14:11
  • @Fatih: Indeed. That was introduced in 5.4.0. See last paragraph of answer. Commented Nov 11, 2024 at 10:58