PHP code to understand but can not write a solution

Source: Internet
Author: User
PHP code can read, but it can't be written.
PHP code to understand but can not write, why, I study in W3school, see a file upload code, the code has to restrict the user to upload the format of the non-specified function. The code is very clear and easy to read.
When I close the Chrome browser, try to write their own time, but there are huge difficulties, how can I solve this situation, please the PHP predecessors, I really want to learn it well.

Share to:


------Solution--------------------
That's not understanding.

------Solution--------------------
Citation:
That's not understood
.
+1
Although and LZ's "understand" is two concepts, but the more important

My advice is to find a software, draw a picture of what you see the code flowchart (the ability to draw UML, but you do not understand UML)
This method varies from person to person, it is more useful to me, because I am accustomed to writing articles from childhood, even if it is a short hundred words
------Solution--------------------
Read it again, and write it.
------Solution--------------------
Take the example you're talking about.

When you close the browser to open the editor ready to write code, when encountering problems, do not worry, the problem you encounter, write down each

Let's say, If/else is fine. Then the code that gets and parses the suffix, is there a problem? Can you write it?

If not, list to the paper, one of the strips.

So this problematic list, which is the feature point you haven't memorized yet.

Then open the browser, the functions of the point of view to understand, it is almost.
------Solution--------------------
In addition to the photographic, no one has just begun to look at a glance can be written, you can first try to write ideas, write pseudocode.
------Solution--------------------
Agree to the first idea, then write the code
  • Related Article

    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.