summaryrefslogtreecommitdiff
path: root/Examples/CppClassesInPhp/cppclassinphp.php
blob: bea276c7c03c83d3c2c97579b1393a6e16978079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);