Functions

The PHP-CPP library uses all the power offered by C++11 to convert the parameters and return values from your functions to/and from PHP.

Php::Value hello_world() { return "hello world!"; }

The function above is a native C++ function. With PHP-CPP you can export this function to PHP with only one single C++ method call.