Hello, I am trying to unset from array using array_search,
it's working, except the first array value "a+" is not working
$bloodType_list = ['a+','a-','b+','b-','o+','o-','ab+','ab-'];
if($key = array_search('a+',$bloodType_list)){
unset($bloodType_list[$key]);
}
foreach($bloodType_list as $bloodType_lists){
echo $bloodType_lists."<br>";
}