


Why, after studying PHP for two years, I suddenly thought about it and thought that I only know additions, deletions, and corrections. What else is there in PHP?
Reply content:
Addition, deletion, modification, and query are determined by the business model and have nothing to do with PHP, but what if the problem you face changes?The settlement system is so complex that it would take a month to run the order form one by one. What should I do? I want to do it in batches, but I find that the boss can’t pay the money and there is not enough memory to run it. What should I do? Let’s split it up again. , As a result, rich people need to write 2,000 lines of code to solve problems that Hive can solve in one sentence.
For the sake of performance, everyone decided to use Phalcon. When building the scaffolding, I found a lot of pitfalls. What should I do? Read zephir and modify the framework to meet the needs.
The product manager is slapping his head every day. The requirements raised today will change tomorrow, and the written code needs to be modified. What should I do? Learn OOP and design patterns, write the code impeccably, and have good scalability. Directly Slap the product dog in the face.
The boss needs to write a push in a few days and uses PHP. Here he needs to solve problems such as asynchronous, process scheduling, socket programming, etc. It is not very good to solve it with PHP. Fortunately, swoole is available, but swoole takes some time to perform. There are still problems, and in the end we have to use C/C++ to solve them.
Slowly, all the problems that can be solved or are suitable to be solved with PHP are solved. However, there are still a lot of problems. What should I do? Find new technologies and new methods to solve the problems. In fact, what is said above is also true. PHP has never been a technology that can solve it. Mysql's read-write separation, database and table sub-database, engine tuning, distributed Spark, Storm, Hive, Kafka, etc. all need to be introduced at the right time to solve the problem.
But what if the product manager asks for additions, deletions, modifications and checks every day but does not give time to refactor to solve performance problems? Resign, otherwise who will support you if your level is still so low in a few years, product manager?

But PHP is also like a car, it can take you around.
I’m too lazy to say too much, I just want to think about my own vision. Please refer to http://php.net PHP is just a language, but the related knowledge is infinite, it depends on how you learn it It’s definitely not as simple as adding, deleting, modifying and checking.
There are too many additions, deletions, modifications and checks. Have you considered how to make it easier? So, you can write a class library. The class library can solve sql operations. If you are tired of using the class library, you can write an ORM yourself.
ORM is equipped with operators and template interpreters, and your framework is ready.
PHP can not only operate databases, but also has many useful uses. Yes, it’s just adding, deleting, modifying and checking. In situations such as large amounts of data and high concurrency, additions, deletions, modifications, and queries can be better realized.

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

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Session hijacking can be achieved through the following steps: 1. Obtain the session ID, 2. Use the session ID, 3. Keep the session active. The methods to prevent session hijacking in PHP include: 1. Use the session_regenerate_id() function to regenerate the session ID, 2. Store session data through the database, 3. Ensure that all session data is transmitted through HTTPS.

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...
