I'm having a problem, the comparison is not working, it should return the "All Right" message but only returns the message "Valid only numbers from 1 to 60"
<?php
$a = array(1,2,3,4,60);
$b = count($a);
$u = count(array_unique($a));
echo "Original: ".$b."<br>"."Unicos: ".$u."<br>";
if($b === $u){
foreach($a as $aceitos){
if($aceitos > 0 AND $aceitos < 61) {
echo "Validos apenas números de 1 a 60";
}else{
echo "Tudo certo";
}
}
echo "Arrays iguais";
}else{
echo "Arrays diferentes";
}
?>