anybody can pls tell me what is the difference between using <?php ...?> and <?...?> tags in php
Difference between <?php ?> and <? ?>
Collapse
X
-
<?...?> is called short tag. If you use short tag you would be able to write php code in short tag. it also can used in HTML TAG. as example
But If you want to use a combination of other non php tag it would conflict such asCode:<INPUT TYPE='text' value=<?=$value?>>
<?xml ?>
but you can achieve it anyway -
To expand on Johny's comment, some servers (Mainly apache) will initiate a PHP code block when <? ?> is used, however, Windows-based servers require <?php ?> tags.Comment
Comment