## is the parser (long tag) of PHP. All code that needs to be run must be placed in the parser.
<?php echo "hello world"; ?>
Short tag ?><% %> (Recommended learning: PHP Programming from Beginner to Master)
Short tags are only used to output variables or expressions. The general usage is
<?=$a?> <?=(表达式)?>
<?php echo $a?> <?php echo (表达式)?>
<?if(...?>
<!--if(...-->
So you must use long tags when writing programs, and short tags will be used when inserting output into html.
The above is the detailed content of Briefly describe what php tags are. For more information, please follow other related articles on the PHP Chinese website!