【发布时间】:2020-10-11 21:42:21
【问题描述】:
目前我想检查php项目中是否使用了特定文件
$target = "foobar.php";
$ beUsed = checkFile($target);
function checkFile($target){
//code to check be here
if (beUsed) return true;
return false;
}
感谢您的阅读,任何帮助将不胜感激
【问题讨论】:
-
您要搜索项目中使用的文件吗?
-
是的,我想搜索要在 php 项目中使用的文件。
-
我尝试过,但这不是我的正确答案。我想检查一个文件是否在所有项目的另一个文件中使用或需要。
-
在
All项目中?