DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
php conditionally remove element from array
foreach ($array as $key => $element) { if ($element['age'] > 90) { unset($array[$key]); } }
PREVIOUS
NEXT
Tagged:
#php
#conditionally
#remove
#element
#array
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit