Basic PHP grammar practice
The way to write PHP code is to start with end
Code comment method
-
<span style="font-size:14px;"><?php
内容代码
?></span>
Copy after login
-
Defined variables start with $
<!DOCTYPE html>
<html>
<head>
<title>day1</title>
<meta c/html" charset="utf-8">
</head>
<body>
<?php
内容代码
?>
</body>
</html>
Copy after login
The naming of variables defined in PHP code is case-sensitive , that is, for two variables with the same name but different capitalization, the system will allocate two memories to you.
-
<span style="font-size:18px;"><?php
1.//单行注释
2.#单行注释
3./*
注释内容
*/ ?></span>
Copy after login
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.
-
The above introduces pap Day 1, including various aspects. I hope it will be helpful to friends who are interested in PHP tutorials.
-