class中构造函数-php

<?php
class qyc{

var $a

var $b

     function __construct($x,$y)
{

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

}
}
$qdx = new qyc(x,y )
posted @ 2021-01-12 10:38  废材小狗  阅读(69)  评论(0)    收藏  举报