summaryrefslogtreecommitdiff
path: root/Examples/CppClassesInPhp/cppclassinphp.php
blob: c2076d38ea0699e63ab55295a3b06aff8f674787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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
$object = new MyClass();

class ImplementedInterface implements MyInterface
{
}

$object2 = new ImplementedInterface();

return;

// run a function of the class
$object->myMethod(1);

echo($object->property1."\n");
echo($object->property2."\n");