$Array = array('Dog' , 'Cat' , 'Bird'); $count = count($Array); for ($x = 0; $x < $count; $x++) { if ($Array[$x] == 'Cat'){ //If array_splice($Array, $x, 1); $x = $x - 1; $count = $count - 1; } }