To gain an in-depth understanding of PHP and make it easier to use PHP, This section describes the basic syntax of PHP. 1. Separating PHP scripts from HTML is caused by a pair of special tags in the file. When the interpreter analyzes a file, all common files other than the Special tag are used, the interpreter does not perform any processing on it, and the files in the special mark will be used
To gain an in-depth understanding of PHP and make it easier to use PHP, This section describes the basic syntax of PHP. 1. Separating PHP scripts from HTML is caused by a pair of special tags in the file. When the interpreter analyzes a file, all common files other than the Special tag are used, the interpreter does not perform any processing on it, and the files in the special mark will be used
To gain an in-depth understanding of PHP and make it easier to use PHP, This section describes the basic syntax of PHP.
1. Separating from HTML
PHP scripts are caused by a pair of special tags in a file. When the interpreter analyzes a file, the interpreter does not process all common files that are not marked, the file in the special mark will be analyzed and executed as the PHP code interpreter. This running mechanism will allow you to embed PHP code in HTML: content outside the PHP tag will be completely opened independently without any processing, and the internal content will be parsed as PHP code.
There are four sets of tags used to mark PHP code blocks, of which only two are always valid ( And