0
$array = array(
'b_E_'.$cnpjClie.'_'.date('Ymd').'_A.'.$ext,
'b_M_'.$cnpjClie.'_'.date('Ymd').'_A.'.$ext,
'b_M_'.$cnpjClie.'_'.date('Ymd').'_B.'.$ext,
'b_M_'.$cnpjClie.'_'.date('Ymd').'_C.'.$ext,
'b_G_'.$cnpjClie.'_'.date('Ymd').'_A.'.$ext,
'b_G_'.$cnpjClie.'_'.date('Ymd').'_B.'.$ext,
'b_G_'.$cnpjClie.'_'.date('Ymd').'_C.'.$ext,
'b_M_'.$cnpjClie.'_'.date('Ymd').'.'.$ext,
'b_M_'.$cnpjClie.'_'.date('Ymd').'.'.$ext,
'b_M_'.$cnpjClie.'_'.date('Ymd').'.'.$ext,
'b_G_'.$cnpjClie.'_'.date('Ymd').'.'.$ext,
'b_G_'.$cnpjClie.'_'.date('Ymd').'.'.$ext,
'b_G_'.$cnpjClie.'_'.date('Ymd').'.'.$ext
);
$str = implode("<br>", $array);
if (in_array($NewArquivo, $array)):
echo "<b>CNPJ: </b>" . $cnpjClie . "<br>";
echo "<b>REALIZOU: </b> BACKUP HOJE<br>";
echo "<b>Arquivo: </b>". $arquivo . "<hr><br>";
else:
echo "<b>CNPJ: </b>" . $cnpjClie . "<br>";
echo "<b>PENDENTE: </b> de backup!<hr><br>";
//$arrayC = array($cnpjClie); tentado assim, corrigido abaixo
$arrayC[] = $cnpjClie;
$strC = implode("\n", $arrayC);
endif;
I would like to know the data that is not in the array, and store in another array in the case $arrayC[], in order to be able to finally notify who did not backup the day, in the test I tried there, it repeats the same data in ELSE.