<?php
class tech{
function PHP(){
return "php";
}
function JSP(){
return "jsp";
}
}
$myClass=new tech();
echo "我uw想学".$myClass->PHP();
?>
<?php
class tech{
function PHP(){
return "php";
}
function JSP(){
return "jsp";
}
}
$myClass=new tech();
echo "我uw想学".$myClass->PHP();
?>
转载于:https://www.cnblogs.com/onlylove2015/p/4865758.html