dad Day1

WBOY
Release: 2016-07-30 13:29:46
Original
1071 people have browsed it


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

  • 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>
    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.
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template