See the short_open_tags setting.
<?= is identical to <? echo and use of it requires short_open_tag to be on. A term to search for would be "short tags".
As an example: <?='hello'?> is identical to <? echo 'hello' ?> which is a short form of <?php echo 'hello' ?>.
yes you can done it using .htaccess. In your .htaccess file, add this
Now you can check files with
<?='hi';?>
instead of<?php ?>
<?= $foobar ?>
is a shortcut for<?php echo $foobar; ?>
.I wouldn't recommend using these short tags because in some webserver environments they are disabled via PHPs configuration.
See the short_open_tags setting.
<?=
is identical to<? echo
and use of it requiresshort_open_tag
to be on. A term to search for would be "short tags".As an example:
<?='hello'?>
is identical to<? echo 'hello' ?>
which is a short form of<?php echo 'hello' ?>
.See also Are PHP short tags acceptable to use? here on SO.
They output what's inside them directly.
is a shortcut for:
These (together with
<? ?>
) are called short tags. See here (short_open_tag)It's part of the short_open_tag. Basically
<?=$foo?>
is equivalent to<?php echo $foo; ?>