Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP: How to remove specific element from an array?

if (($key = array_search('strawberry', $array)) !== false) {
    unset($array[$key]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #remove #specific #element
ADD COMMENT
Topic
Name
2+7 =