Home >Backend Development >PHP Tutorial >Summary of small PHP bugs [continuously updated]_PHP tutorial
1. Function call
Maybe it’s because I’m a relatively newbie. I just started learning to write PHP pages and haven’t written a controller yet. When debugging the page, I called the dump() function. I wrote it like this: $dump($pageCount); Result An error was reported. The error is: php function name must be a string.
Masters, don’t criticize me, I’m just too good at it. Then I changed it to dump($pageCount);, and the error was solved. It turned out that the '$' symbol was not added when calling the function. It seems that you cannot blindly use the special symbols of the programming language.