PHP learning from scratch and php from scratch. From the beginning of PHP learning, from the beginning of php write this series of articles mainly to urge yourself to regularly digest some knowledge every day! At the same time, in order to let people learn what they need ~! I learned PHP from scratch and php from scratch
I wrote this series of articles to urge myself to regularly and quantitatively digest some knowledge every day!
At the same time, in order to let the people in need learn something ~!
My technology is really not high! This article may contain errors! I hope you will be able to remind me and everyone after discovering this!
Secretly speaking, the final goal of this tutorial is to implement a PHP framework (although it may be far away from me !~)
Yesterday we set up a virtual host and ran it successfully.
Today, I want to write programs in this VM.
The VM created last time is in the directory upupw/vhosts/www. test. local (the domain name of the VM created in the previous lesson is www. test. loacl)
We first use PHPstrom to open our upupw/vhosts/www. test. local
First select open directory
Then the project is opened.
Create a php file named lesson1.php)
After clicking
After the file is created, click the File to enter the file editing mode.
1. the first command echo
Echo is an output statement in PHP. you can enclose string output strings in quotation marks.
For example
In this way, the page will output a hello world
Believe it? Try it?
Note that ";" Never forget to add to every PHP command !~
I wrote this series of articles to urge myself to regularly and quantitatively digest some knowledge every day! At the same time, in order to let the people in need learn something ~! Myself...