20
10
<?php
class foo {
var $number = '';
function __construct($n) {
$this->number = $n;
}
function call($n) {
return ($this->number += $n);
}
}
$m = 10;
$x = new foo($m);
echo $x->call(10);
echo "<br />\n";
echo $m;
echo '<hr>';
highlight_file(__FILE__);
?>