$_POST
存在するかどうかを確認し、特定の値のみを確認しようとしています。私のコードでは、データヘッダー=h1をチェックしようとしています。コードは機能し、データヘッダーをチェックしますが、ヘッダーの値を指定する方法がわかりません。つまり、header=h1をチェックします。
if ($_POST['data']['header']){
$myBuildPath = Config::$buildPath.Users::$userid.'/'.$item[$this->mainModel->primaryKey].'/';
foreach (Config::$repository['headersCustomDest'] as $file => $fileDestPath){
$dest_file = $myBuildPath.$fileDestPath;
if(file_exists($file)) full_copy($file,$dest_file);
else echo $file.' does not exist.';
}