SWIG/Examples/php5/callback/
Implementing C++ callbacks in PHP5
This example illustrates how to use directors to implement C++ callbacks in PHP5.