So i have an a array of numbers:
$arr = [53, 182, 435, 591, 637];
All i am trying to do is loop trough each element and when a certain condition is true it should return a new array with the elements removed that have fitted the condition.
foreach($arr as $arry){
echo "\n";
echo $arry;
if($arry % 13 == 0){
//Remove 182 and 637 because they are divisible by 13,and make a new array: [53, 435, 591]
}
}