Is there any way of not copying the specific array in the foreach loop
?
Here's the code
<?php
$letters = array("A","B","B","C");
foreach ($letters as $char){
if ($char == "B") {
continue;
}
echo $char;
}
?>
I want my output to be only ABC
not AC