<?php
class ss
{
var $name;
var $psw;function xinxi($xm){
$this->name=$xm;}
function xinxi1($mm){
$this->psw=$mm;}
function pd()
{
if($this->name=="sw" and $this->psw=="04eb01")
echo ("密码正确,欢迎您的访问!");
else echo ("密码不正确,请确定后在登录!");
}
}
$name1=new ss;
$name1->xinxi('aa');
$name1->xinxi1('psw');
$name1->pd();
?>