how to delete value from array in php
for this you have to find key of that value first then you can unset that key from array.
$yourArray = array(1,2,3,4,5,6,7,8,9);
$delateValue = 8;
$aKey = array_search($delateValue, $yourArray);
if (false !== $aKey) {
unset($yourArray[$aKey]);
}
print_r($yourArray);