SyntaxFix
Write A Post
Hire A Developer
Questions
Use this simple way hope it will helpful
foreach($array as $k => $value) { if($value == 'strawberry') { unset($array[$k]); } }