Disney has a famous animated movie "Ratatouille". The protagonist is a little mouse Remy, who can cook like a professional chef. Similar to this: If PHP beginners want to achieve something in this area, the advanced method is also very similar. This article lists some simple basic steps:
In the movie poster, Remy is wearing a professional chef's hat. If we want to become PHP experts, we must first put on a hat for ourselves-the hat of "I am a PHP expert".
Why do you need such a hat? What are the benefits of doing this?
With such a hat, first of all, we will have confidence and recognize ourselves as a professional PHP developer, thus naturally improving our confidence in PHP programming. Furthermore, the key to becoming an expert in PHP programming is self-study and self-confidence.
We all know that people with high self-confidence in a certain field, whether in sports, entertainment or programming, can usually achieve better results than ordinary people and have a higher success rate. Therefore, this hat is unusual. With it, you become the "man with the silver spoon in his mouth."
Suppose we are going to prepare an Indian meal "carrot pudding", then the first image that comes to mind is a large bowl full of carrot pudding sprinkled with dried fruits.
1. Rehearse the cooking process in your mind first:
When cooking, rehearse it in your mind before actually doing it.
Suppose we have a plan to develop a new PHP module, then there is a very important step before actual implementation, which is to mentally rehearse the process of the new module and ask ourselves some questions during the process, such as the following five:
What are the basic requirements for this new module?
What are the advantages of developing new modules?
Who is using this module?
What necessary programming skills should be mastered?
What is the development timeline for this new module?
Before actually doing it, ask yourself questions first, and then find out the answers to these questions. This is very beneficial to the actual implementation.
2. Gather necessary resources
Collect a certain amount of essential ingredients such as butter, sugar, carrots, almonds, and cardamom.
The same is true for programming. First collect the necessary technical resources and put them together.
3. Divide the entire task into some small tasks
The process of making carrot pudding can be divided into a series of small tasks.
Similarly, the task of making a new module can be broken into smaller tasks and completed one by one.
4. Add dried fruits
Adding dried fruit makes carrot pudding look even more delicious.
Similarly, we need to learn and try some advanced tools and techniques to arouse user interest in this module.
5. The plating is more exciting
If a meal is prepared and plated incorrectly, it can also affect the success and popularity of the meal. Plating is very important, no matter what effect you want to present, the result must be simple and clear.
Similarly, when writing code, we should use indentation and comments appropriately to make the code look more professional.
6. Present with gratitude
After hours of preparation, if the meal isn’t presented to family and friends, they won’t be able to taste it. what does that mean? After all the hard work, if you fail to make a proper release, the result is still zero.
Similarly, even if a lot of effort is spent on the development of a new module, if it is not presented to customers in an appropriate way, then all the efforts will be in vain.
7. Obtain comments and feedback
After you've successfully made carrot pudding, it's time to get feedback from friends and family. Why do we need reviews and feedback? The answer is very simple, we need to improve the recipe.
After successfully completing the development, collect feedback about the new module from friends, development experts and experts, record the comments of PHP experts and conduct experiments accordingly.
8. Practice more
We all know the term "practice makes perfect", how to apply it here? Practicing more on a certain meal will strengthen your confidence and perfection in the dish. Practicing more on the code will also help you write better code, making you more confident.
9. Wait a moment and success will come
Don't be too hasty, it won't take a day to freeze three feet. Follow these steps and repeat them many times. After a while you will see the results. People like your work and want to get feedback from you.
Original link: 9 Effective steps to become an expert in PHP Programming (Translator Sun Wei / Editor Qian Shuguang)
The above is the detailed content of How to become a PHP expert faster. For more information, please follow other related articles on the PHP Chinese website!

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

实现方法:1、使用“sleep(延迟秒数)”语句,可延迟执行函数若干秒;2、使用“time_nanosleep(延迟秒数,延迟纳秒数)”语句,可延迟执行函数若干秒和纳秒;3、使用“time_sleep_until(time()+7)”语句。

php字符串有下标。在PHP中,下标不仅可以应用于数组和对象,还可应用于字符串,利用字符串的下标和中括号“[]”可以访问指定索引位置的字符,并对该字符进行读写,语法“字符串名[下标值]”;字符串的下标值(索引值)只能是整数类型,起始值为0。

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

在php中,可以使用substr()函数来读取字符串后几个字符,只需要将该函数的第二个参数设置为负值,第三个参数省略即可;语法为“substr(字符串,-n)”,表示读取从字符串结尾处向前数第n个字符开始,直到字符串结尾的全部字符。

方法:1、用“str_replace(" ","其他字符",$str)”语句,可将nbsp符替换为其他字符;2、用“preg_replace("/(\s|\ \;||\xc2\xa0)/","其他字符",$str)”语句。

查找方法:1、用strpos(),语法“strpos("字符串值","查找子串")+1”;2、用stripos(),语法“strpos("字符串值","查找子串")+1”。因为字符串是从0开始计数的,因此两个函数获取的位置需要进行加1处理。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version
Visual web development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool