class Student { public static function Hi() { echo "你好!"; } } Student::Hi...
class Student { public $Name; public static $num&...
class Student { public $Name; function __construct($Name) { $this->Name = $Name...
定义一个类:class Student { public $Name; public function...
传统的构造函数:class Student{ public $Name; public $Sex; //默认是public public function Studen...
编辑“Student.Class.php”文件class Student{ public $name; public&n...
// 定义一个类 class Student{ public $name; public $sex; public $age; } // 创建对象 $stu...
for循环遍历数组:// 定义数组 $arr[0] = 10; $arr[1] = 50; $arr[2] = 30; // for循环遍历数组...
//常量 define("NUM",5); echo NUM;输出:5...
// 调用 fun1(); echo "<br/>"; Echo fun2(1,2,3); // 定义无参数的函数 function fun1(...
阅读: 20129
阅读: 17266 评论:1
阅读: 16439
阅读: 15810
阅读: 15584
扫扫关注微信