Answers for "how to remove the array value in single phph"

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

php remove element from array by value

// matrix array
foreach($appsList as $key => $app) {
            if($app["app_status"] !== "approved") {
                // remove orange apps
                unset($appsList[$key]);
            }
}
Posted by: Guest on January-15-2021

Code answers related to "how to remove the array value in single phph"

Browse Popular Code Answers by Language