diff options
Diffstat (limited to 'Examples/CppClassesInPhp/cppclassinphp.php')
-rw-r--r-- | Examples/CppClassesInPhp/cppclassinphp.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Examples/CppClassesInPhp/cppclassinphp.php b/Examples/CppClassesInPhp/cppclassinphp.php new file mode 100644 index 0000000..bea276c --- /dev/null +++ b/Examples/CppClassesInPhp/cppclassinphp.php @@ -0,0 +1,13 @@ +<?php +/** + * cppclassinphp.php + * @author Jasper van Eck<jasper.vaneck@copernica.com> + * + * An example file to show the working of using a C++ class in PHP. + */ + +//create a MyCustomClass object, which is an object of a C++ class +$MyCustomClass = new MyClass(); + +// run a function of the class +$MyCustomClass->myMethod(1); |