summaryrefslogtreecommitdiff
path: root/Examples/CallPhpFunctions/callphpfunction.php
blob: 26f161c1d38630237d6f71ba1ac78da4bed2c052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
/**
 *	callphpfunction.php
 * 	@author Jasper van Eck<jasper.vaneck@copernica.com>
 * 
 * 	An example file to show the working of a php function call in C++.
 */

/*
 *	Run the function with the given name. As you can see, the given name 
 * 	can be different from the actual function name.
 */
$result = call_php_function(function($a, $b, $c){
							return $a + $b + $c;
							});
echo $result;