PriymakVl
3/21/2020 - 8:25 PM

php array delete item by its value

php array delete item by its value



while (($i = array_search($value, $array)) !== false) {
    unset($array[$i]);
}