PHP调用其他文件中的类

作者:猪哥 2018-04-06

首先在一个tool.php文件中声明一个类:


在另一文件main.php调用上面的类中的方法:

say();
  echo $content;
?>

相关文章

精彩推荐