What does '<?=' mean in PHP?

user198729 picture user198729 · Jan 7, 2010 · Viewed 158.2k times · Source
<?php

$a=1;

?>
<?=$a;?>

What does <?= mean exactly?

Answer

BalusC picture BalusC · Jan 7, 2010

It's a shorthand for <?php echo $a; ?>.

It's enabled by default since 5.4 regardless of php.ini settings.