PHP default file extension and comment statement
This article mainly introduces "PHP default file extension and comment statement". In daily operation, I believe many people have doubts about PHP default file extension and comment statement. Xiaobian consulted all kinds of information and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "PHP default file extension and comment statement". Next, please follow the editor to study!
The default file extension for PHP files is ".php".
PHP files usually contain HTML tags and some PHP script code.
Below, we provide a simple example of a PHP file that outputs the text "Hello World!" to the browser:
Each line of code in PHP must end with a semicolon. A semicolon is a delimiter that distinguishes an instruction set.
With PHP, there are two basic instructions for outputting text in a browser: echo and print.
Comments in PHP
The single-line comment is: / /
The multiline comment is: / * /
At this point, the study of "PHP default file extension and comment statement" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!