Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php delete item from array

if (in_array('strawberry', $array)) 
{
    unset($array[array_search('strawberry',$array)]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #delete #item #array
ADD COMMENT
Topic
Name
9+9 =