Is there any difference or related risk discovery with the following PHP options?
<? echo "hello world!"; ?> <?php echo "hello world!"; ?> <?="hello world!"?>
In addition, you must close all scripts with ?>
?>
, short_open_tag. , , , <?php, , , , , . , , <?xml. , , - short_open_tag; , , ( . )
short_open_tag
<?php
<?xml
, - , , , . Zend PHP.
, , , , , PHP. , , , ) <?= , ) -, . " " .
<?=
, . , PHP, , , , , .
, , .
. , . , , , . , - - . , . - , ,
, PHP, , , ?
The only real consideration (imho) is XML processing instructions, which can be a problem if you output XHTML, although I have never seen a reason to do this instead of strict or transitional HTML.