Summary of small PHP bugs [continuously updated]_PHP tutorial

WBOY
Release: 2016-07-13 10:34:56
Original
1151 people have browsed it

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...
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!