This site runs best with JavaScript enabled.

PHP Shortcut Syntax

Kevin Beck

June 10, 2019


I came accross this today:

<?= your-code; ?>

Essentially it is the same as:

<?php echo your-code; ?>

I don't like shortcut syntax. This example saves me 7 button presses and such a small amount of processing, but is not very readable.

More Links