PHP learning from scratch, php_PHP tutorial from scratch

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.