class中构造函数

<?php
class qyc{

var $a

var $b

     function __construct($x,$y)
{

    $this->a = $x;
    $this->b = $y;

}
}
$qdx = new qyc(x,y )
posted @ 2017-10-18 15:25  废材小狗  阅读(94)  评论(0)    收藏  举报