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