PHP learning diary one

xiaoxiao2021-03-06  58

PHP is a multi-purpose scripting language for Open Source (open source), and can embed HTML multi-purpose scripting languages. Syntax Close to C, Java, and Perl.

The following is a simple example:

Echo "Hello World!";

?>

Unlike the client's JavaScript, the PHP code is running on the server. The PHP script is caused by a special tag in the file. When the interpreter analyzes a file, the ordinary files outside of all special tags are explained. The device does not do anything, and the document in the special mark will be executed as a PHP code is interpreted. This running mechanism will allow you to embed PHP code in HTML: The content outside the PHP tag will be completely independent, not any processing, and internal will be parsed as a PHP code. And the same taste in the ASP. It is used to mark the tag of the PHP code block has four sets, only two sets are always effective (

And