import source from 1.3.40
[external/swig.git] / Examples / php / simple / runme.php
1 <?php
2
3 require "example.php";
4
5 # Call our gcd() function
6
7 $x = "42 aaa";
8 $y = 105;
9 $g = gcd($x,$y);
10 print "The gcd of $x and $y is $g\n";
11
12 # Manipulate the Foo global variable
13
14 # Output its current value
15 print "Foo = " . Foo_get() . "\n";
16
17 # Change its value
18 Foo_set(3.1415926);
19
20 # See if the change took effect ( this isn't a good example for php, see
21 #                                 manual for why. )
22 print "Foo = "  . Foo_get() . "\n";
23 print_Foo();
24
25 ?>