diff options
Diffstat (limited to 'Examples/CppClassesInPhp/cppclassinphp.php')
-rw-r--r-- | Examples/CppClassesInPhp/cppclassinphp.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/Examples/CppClassesInPhp/cppclassinphp.php b/Examples/CppClassesInPhp/cppclassinphp.php index cf1e42c..c2076d3 100644 --- a/Examples/CppClassesInPhp/cppclassinphp.php +++ b/Examples/CppClassesInPhp/cppclassinphp.php @@ -6,12 +6,17 @@ * An example file to show the working of using a C++ class in PHP. */ -// run the regular function -myFunction(); - //create a MyCustomClass object, which is an object of a C++ class $object = new MyClass(); +class ImplementedInterface implements MyInterface +{ +} + +$object2 = new ImplementedInterface(); + +return; + // run a function of the class $object->myMethod(1); |