How to learn php?-php Tutorial

Source: Internet
Author: User
How should I learn php? I used to work on. Net & nbsp; recently, my company's php programmers ran away, so they pulled me to wipe my ass! My previous understanding of php is 0. I started to contact php this week and sent a lot of water stickers! After a few days, I feel that php & nbsp; is not as easy as I think to get started with the variable declaration method. for example, a variable declaration in. php and then B. php references the variables declared in a directly in B. If you don't take a closer look at php, how can you learn it?
I used to do. Net
Recently, the company's php programmers ran away and pulled me to wipe my ass!
The previous understanding of php is 0.
A lot of water stickers have been posted since I started to contact php this week!

Feeling php in a few days
Not as easy to use as you think
The variable declaration method is not used
For example, a variable is declared in a. php.
Then B. php references
The variables declared in a are directly used in B. If you don't take a closer look, you don't know where it comes from.
Why is it so amazing? Can't we declare that we want global variables?
Currently, the most uncomfortable one is

Have to complain
The previous programmers did not leave anything except the source code.
There are no fields in the document database, and there are any comments.
It's so fucking awkward !!!!!!!!!!!!!!!


------ Solution --------------------
Comments from programmer A: This code is only understandable to me and God.
LZ took the job of programmer A and wrote A note: Only God can understand it now.
------ Solution --------------------
Is PHP still used? Although PHP is very bad, I am using it directly.
------ Solution --------------------
Discussion

Comments from programmer A: This code is only understandable to me and God.
LZ took the job of programmer A and wrote A note: Only God can understand it now.

------ Solution --------------------
Find a php api and check it again.
------ Solution --------------------
First look at the syntax. when looking at the example, you 'd better try to write it yourself.
If there is a foundation, it will gradually increase the difficulty.
------ Solution --------------------
It is more difficult to read other people's code than to write them by yourself.
------ Solution --------------------
I think php syntax is the easiest to understand.
Don't worry about it.
------ Solution --------------------
Code is still a trivial matter. a few days ago, I met a code with a business logic of 10 or 20 elseif branches. then I didn't comment a sentence, but I still had a encapsulated file. I used it in many places, so I could not change it directly, therefore, if the code is corrupted, you must remember to write comments and be conscientious to the coders.
------ Solution --------------------
My understanding is to look at other people's code, and then prepare a php manual or something that won't be checked at any time. You can also delete the add-and-View feature. At first, let's take a look at the videos written by others.
------ Solution --------------------
Discussion

Code is still a trivial matter. a few days ago, I met a code with a business logic of 10 or 20 elseif branches. then I didn't comment a sentence, but I still had a encapsulated file. I used it in many places, so I could not change it directly, therefore, if the code is corrupted, you must remember to write comments and be conscientious to the coders.

------ Solution --------------------
Learn with heart

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.