~ubuntu-branches/ubuntu/warty/swig1.3/warty

« back to all changes in this revision

Viewing changes to Examples/php4/simple/runme.php3

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Landschoff
  • Date: 2002-03-29 01:56:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020329015607-c0wt03xu8oy9ioj7
Tags: upstream-1.3.11
ImportĀ upstreamĀ versionĀ 1.3.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?
 
2
 
 
3
dl("libexample.so");
 
4
 
 
5
# Call our gcd() function
 
6
 
 
7
$x = 42;
 
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 . "\n";
 
16
 
 
17
# Change its value
 
18
$Foo = 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 . "\n";
 
23
 
 
24
?>