Ejemplo n.º 1
0
print "<br/>";
#����
class student
{
    private $name;
    public function setName($name)
    {
        $this->name = $name;
    }
    public function getName()
    {
        return $this->name;
    }
}
$zgx = new student();
$zgx->setName("zgx");
printf("%s", $zgx->getName());
#ǿ��ת��
$t1 = 10;
$t2 = "5";
$result = $t1 + $t2;
echo " {$result}  <br/>";
$t3 = "1a";
$result += $t3;
echo " {$result}  <br/>";
#����
$t4 =& $t3;
printf("\$t3 :%d<br/>", $t3);
$t4 = "change";
printf("\$t3 :%d<br/>", $t3);
function ref_test(&$param)