The solution to the error report of empty function in PHP
This article mainly explains "the solution to the error report of empty function in PHP". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "the solution to the error report of the empty function in PHP".
In PHP development, when you use empty to check the result returned by a function, you will get an error: Fatal error: Can't use function return value in write context
For example, the following code:
The copy code is as follows: