Posted on 16th September 2024|71 views
Can someone help me out how to implement callback function in php ?
Posted on 16th September 2024| views
In PHP, callback means a function object or reference, including type callable. A callback or callable variable can work as a function, an object method also a static class method.
Here is an example:
<?php
function myFunction() {
echo "mindmajix \n";
}
call_user_func('myFunction');
?>