Home >Backend Development >PHP Tutorial >Callback function - Can't get external changes in php callback?

Callback function - Can't get external changes in php callback?

WBOY
WBOYOriginal
2016-10-10 11:56:161029browse

The code is as follows (laravel sends email)
Callback function - Can't get external changes in php callback?

Reported an error

Callback function - Can't get external changes in php callback?

I remember that it can be used like this in js. Is it not possible in php? Is there any good way to use it this way?

Reply content:

The code is as follows (laravel sends email)
Callback function - Can't get external changes in php callback?

Reported an error

Callback function - Can't get external changes in php callback?

I remember that it can be used like this in js. Is it not possible in php? Is there any good way to use it this way?

<code>function($message) use ($name) {
}</code>

Don’t read the php documentation first, after all, php is not js.

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