Can I write custom functions in PHP member methods?

WBOY
Release: 2016-09-06 08:42:55
Original
1019 people have browsed it

Can I write custom functions in PHP member methods?
I defined a function in a method, but an error was reported when calling it
This is the method that reported the error
Can I write custom functions in PHP member methods?
The error was reported as follows

Can I write custom functions in PHP member methods?

But I have another method that also writes functions and performs recursion, but no error is reported.

Can I write custom functions in PHP member methods?

This is the interface for calling these two methods

Can I write custom functions in PHP member methods?

Why is an error reported? Can anyone explain it or have a good way to deal with it

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