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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
# Call our gcd() function
6
6
 
7
 
$x = 42;
 
7
$x = "42 aaa";
8
8
$y = 105;
9
9
$g = gcd($x,$y);
10
10
print "The gcd of $x and $y is $g\n";
12
12
# Manipulate the Foo global variable
13
13
 
14
14
# Output its current value
15
 
print "Foo = " . $Foo . "\n";
 
15
print "Foo = " . Foo_get() . "\n";
16
16
 
17
17
# Change its value
18
 
$Foo = 3.1415926;
 
18
Foo_set(3.1415926);
19
19
 
20
20
# See if the change took effect ( this isn't a good example for php, see
21
21
#                                 manual for why. )
22
 
print "Foo = "  . $Foo . "\n";
 
22
print "Foo = "  . Foo_get() . "\n";
 
23
print_Foo();
23
24
 
24
25
?>