PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/php/simple/runme.php

#
PHP | 25 lines | 11 code | 8 blank | 6 comment | 0 complexity | e55c820f57f7c05c9b42953b9bdbb51f MD5 | raw file
 1<?php
 2
 3require "example.php";
 4
 5# Call our gcd() function
 6
 7$x = "42 aaa";
 8$y = 105;
 9$g = gcd($x,$y);
10print "The gcd of $x and $y is $g\n";
11
12# Manipulate the Foo global variable
13
14# Output its current value
15print "Foo = " . Foo_get() . "\n";
16
17# Change its value
18Foo_set(3.1415926);
19
20# See if the change took effect ( this isn't a good example for php, see
21#				  manual for why. )
22print "Foo = "  . Foo_get() . "\n";
23print_Foo();
24
25?>