* * An example file to show the working of a php function call in C++. */ /** * Call a C++ function with a callable PHP function as its parameter. * The PHP function is then executed from the C++ code. * The PHP function is this case, adds three numbers. */ $result = call_php_function(function($a, $b, $c){ return $a + $b + $c; }); // print the result echo $result . "\n";