remove array element php

33

if (in_array('strawberry', $array)) 
{
    unset($array[array_search('strawberry',$array)]);
}

Comments

Submit
0 Comments