<?php $arr = array('Sam','Kin','Alex','Dineal'); if(in_array('Sam',$arr)){ unset($arr[array_search('Sam',$arr)]); } print_r($arr); ?> Array ( [1] => Kin [2] => Alex [3] => Dineal )