Home >Backend Development >PHP Tutorial >Learn PHP from scratch, start php_PHP tutorial from scratch

Learn PHP from scratch, start php_PHP tutorial from scratch

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-13 09:55:561870browse

Learn PHP from scratch, start php from scratch

<p>写这个系列文章主要是为了督促自己  每天定时 定量消化一些知识!</p>
<p>同时也为了让需要的人 学到点啥~!</p>
<p>本人技术实在不高!本文中可能会有错误!希望大家发现后能提醒一下我和大家!</p>
<p>偷偷说下 本教程最后的目标是实现一个PHP的框架(虽然对我来说也许很遥远!~)</p>

Yesterday we set up a virtual host and successfully ran it

Today I will write a program in this virtual host

The virtual host built last time is in the directory upupw/vhosts/www.test.local (the following www.test.loacl is the domain name of the virtual host you built in the previous lesson)

We first use PHPstrom to open our upupw/vhosts/www.test.local

First select the directory to open

Then open the project

Create a new PHP file and we call it lesson1.php (translation lesson: lesson, course)

After clicking

After creating it, click on the file to enter the editing mode of the file

1. The first command echo

Echo is an output statement in PHP, which can output a string. The string is enclosed in quotation marks

For example

<?php
echo 'hello world';

This page will output a hello world

Don’t believe it? Give it a try?

 

Note that ";" must be added after every command in PHP. Don't forget! ~

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/990890.htmlTechArticleLearn PHP from scratch, start php from scratch. The main reason for writing this series of articles is to urge myself to digest it regularly and quantitatively every day. Knowledge! At the same time, I also want to let people who need it learn something~! I...
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