Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove specific element from array

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