Blogger Information
Blog 27
fans 0
comment 0
visits 17272
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
011-php第一节-环境、认识
冇忉丼
Original
535 people have browsed it

1. 环境搭建起来

搭建步骤如下


代码如下:

  1. <?php
  2. echo '加油';
  3. echo '<br/>';
  4. echo 1+1;
  5. ?>
  6. <!doctype html>
  7. <html lang="en">
  8. <head>
  9. <meta charset="UTF-8">
  10. <meta name="viewport"
  11. content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  12. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  13. <title>Document</title>
  14. </head>
  15. <body>
  16. <h2 style="color: red">国产好剧</h2>
  17. <ul>
  18. <li><?php echo '少年派'?></li>
  19. <li>带着爸爸去留学</li>
  20. <li>亲爱的,热爱的</li>
  21. </ul>
  22. </body>
  23. </html>
  24. <?php
  25. $a= 'Hello PHP.';
  26. echo $a;
  27. ?>
  28. <!--变量名规则,两个单词中间用下滑线或者小驼峰或大驼峰(首字母大写)命名法-->

2. 写下对php的理解

php(Hypertext Preprocessor)即超文本预处理器,是一种解释性语言。诞生于1994年,衍生自Perl,是面向对象的、高性能的、可扩展的、低成本的、跨平台的、易学习的脚本语言。
php是由php解释器(如zend引擎)解释执行,php运行原理图如下:

php文件里可以包括html,css,php,js等代码及纯文本,

附:

Correction status:qualified

Teacher's comments:完成的不错
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post