<?php
class user
{
	var $x;
	function modifyx($val)
	{
		$this->x=$val;
	}
}

function & createUser($x)
{
	$b=new user();
	//$b->modifyx($x);
	return $b;
}

$res=createUser(19);
$tmp=$res->x;
print("$tmp");

?>