Home >Backend Development >PHP Tutorial >Callback function - Can't get external changes in php callback?
The code is as follows (laravel sends email)
Reported an error
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?
The code is as follows (laravel sends email)
Reported an error
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.