Questions tagged [rowdeleting]

91 questions
-4
votes
3 answers

Delete one item from array with matching keys

I have an array $array = ['f'=>'foo', 'f'=>'foo', 'f'=>'foo','g'=>'good']; and I want to delete only one item from this array with matching key, like the following: unset($array['f']); However, this will delete the all items with this matching…
Feci
  • 11
  • 1
  • 3
1 2 3 4 5 6
7