Currently I want to check if a specific file be used in php project
$target = "foobar.php";
$ beUsed = checkFile($target);
function checkFile($target){
//code to check be here
if (beUsed) return true;
return false;
}
thanks for reading, any help would be appreciated