diff options
author | JasperVanEck <jaspergkurtz@gmail.com> | 2013-12-02 17:09:59 +0100 |
---|---|---|
committer | JasperVanEck <jaspergkurtz@gmail.com> | 2013-12-02 17:09:59 +0100 |
commit | 3750e24683f3a1d0b643e9808d9619db40d31cc4 (patch) | |
tree | fd6a2c60a0ff95460d73f0004ef2d4e12556e57a /Examples/CppClassesInPhp/cppclassinphp.php | |
parent | 9bb110fe1b7d9684d0af6bdd208b02a04c2a7392 (diff) |
Added CppClassInPhp Example
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); |