<?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();
?>
要发表评论,您必须先登录。
TRC20(虚拟货币):
ERC20(虚拟货币):
Bitcoin(BTC):
关于作者