文件名称:php定义类.zip
文件大小:1KB
文件格式:ZIP
更新时间:2022-07-31 04:11:14
类库下载-php定义类
<?php
class Student
{
var $str_Name;
var $str_Sex;
var $int_Id;
var $int_English;
var $int_maths;
function Input ( $Name, $Sex, $Id, $English, $Maths)
{
$this->str_Name=$Name;
$this->str_Sex =$Sex;
$this->int_Id =$Id;
$this->int_English=$English;
$this->int_Maths=$Maths;
}
function ShowInfo()
{
echo ("姓名:$this->str_Name
");
echo ("性别:$this->str_Sex
");
echo ("学号:$this->int_Id
");
echo ("英语成绩:$this->int_English
");
echo ("数学成绩:$this->int_Maths
");
}
}
$Wing = new Student;
$Wing->Input ("Wing","男",33,95,87);
$Paladin = new Student;
$Paladin->Input ("paladin","女",38,58,59.5);
$Wing->ShowInfo();
$Paladin->ShowInfo();
?>定义人的类,有姓名,性别,学号,英语成绩,数学成绩等
【文件预览】:
php定义类
----php中文网下载站.url(114B)
----php中文网免费下载站.txt(219B)
----dyl.php(821B)