Answers for "remove specific nuber of array in php"

PHP
0

php remove specific element from array

if (($key = array_search('strawberry', $array)) !== false) {
    unset($array[$key]);
}
Posted by: Guest on July-08-2020
0

Remove a specific element from an array php

$array=array_diff($array,['strawberry']);
Posted by: Guest on June-04-2021

Code answers related to "remove specific nuber of array in php"

Browse Popular Code Answers by Language