<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
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! ~