How To Unset Or Delete An Element From Array By Value In PHP

122

if (($key = array_search($value, $sampleArray)) !== false) {
    unset($sampleArray[$key]);
}

Comments

Submit
0 Comments