background image

$this->cn[32]='W';
$this->cn[33]='X';
$this->cn[34]='Y';
$this->cn[35]='Z';
}
functioncheck1($a)
{
if(ereg("[0-9]",$a))
if($a>=2)
if($a<=36)
returntrue;
returnfalse;
}
functioncheck2($a)
{
$la=0;
for($j=0;$j<strlen($a);$j )
{
if($this->chn[substr($a,$j,1)]>=$this->n)
$la=1;
if($la)
break;
}
if($la)
returnfalse;
else
returntrue;
}
functiontoDEC($a)//$n->十进制
{
if($this->n==10)
return$a;
else
{
$a=strrev($a);
$k=0;
for($i=0;$i<strlen($a);$i )
{
$k =$this->chn[substr($a,$i,1)]*pow($this->n,$i);
}
return$k;
}
}
functiongethigh($a)