<?php
$o=100; //架设值=$_POST
class CLASS_
{
protected $a;
function setA($_a) {
$this->a = $_a;
}
function getA() {
return $this->a;
}
}
$class = new CLASS_();
$class->setA($o); //给$_a赋值
echo $class->getA();
?>
<?php
$o=100; //架设值=$_POST
class CLASS_
{
protected $a;
function setA($_a) {
$this->a = $_a;
}
function getA() {
return $this->a;
}
}
$class = new CLASS_();
$class->setA($o); //给$_a赋值
echo $class->getA();
?>
关于作者