Home  >  Article  >  Backend Development  >  dad Day1

dad Day1

WBOY
WBOYOriginal
2016-07-30 13:29:461032browse


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>
  • Defined variables start with $
<!DOCTYPE html>
<html>
<head>
    <title>day1</title>
    <meta c/html" charset="utf-8">
</head>

<body>
    <?php
内容代码

    ?>
</body>
</html>

  • Case-sensitive

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>

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.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:PHP progress barNext article:PHP progress bar