<?php
class OS {
var $name;
function OS($name) {
$this->name = $name;
}
}
function changeName($obj, $name) {
$obj->name = $name;
}
$linux = new OS('linux');
changeName($linux, 'windows');
echo $linux->name;
? >