$index = array_search('string3',$array); if($index !== FALSE){ unset($array[$index]); }

if you think your value will be in there more than once try using array_keys with a search value to get all of the indexes. You'll probably want to make sure

EDIT: