Home >Backend Development >PHP Tutorial >Summary of small PHP bugs [continuously updated]_PHP tutorial

Summary of small PHP bugs [continuously updated]_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:34:561169browse

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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/747437.htmlTechArticle1. The function call may be because I am a relatively newbie. I have just started to learn to write PHP pages and have not written a controller yet. When debugging on the page, the dump() function was called. I wrote it like this: $du...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn