我可以使用循环将数组的变量插入php-include吗?或者还有别的办法


Can I insert the variables of the array into php include using a loop? Or is there another way?

我可以使用循环将数组的变量插入php-include吗?或者还有别的办法吗?我刚试过这里是我的代码

获取变量值时去掉单引号,是的,它会起作用,另一件事是养成使用include_oncerequire_once而不是includerequire 的好习惯

include_once $path;