求助 php递归查询父类,可以echo输出,无法return
echo sontofather(3); 这句可以正常输出,即父类自己递归没有问题,可以return返回值,也可echo输出;
echo sontofather(450); 这句无法正常return输出,但是可以echo输出
php ?return递归?echo
------解决方案--------------------
16 行
sontofather($i);
改为
return sontofather($i);