I also studied PHP for a while and used a bunch of libraries. Then I found that the best practice of PHP is array programming! From the following aspects: 1. basic syntax (such as foreach and array function library): array operations are the easiest, and literal-style arrays (similar to Java Map) are also supported ), <LINKhref = "htt
I also studied PHP for a while and used a bunch of libraries. Then I found that the best practice of PHP is "Array programming!
From the following aspects:
1. basic syntax (such as foreach and array function library): array operations are the easiest, and literal-style arrays (similar to Java Map) are also supported ), you don't have to spend much time on it.
2. Core Engine (Zend Engine): object-oriented programming is cumbersome and not as convenient as Java. More importantly, the PHP engine is inefficient at processing objects.
3. Database access (PHP native): The Returned array has the highest validity rate and is the simplest.
4. Template engine (Smarty, etc.): it is most convenient to create a template when using arrays (you can simply use ).
I personally feel that when I want to build a PHP project in the future, the first step is array-oriented programming, which is fast and efficient ....