Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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]);
            }
}
Source by www.tutsplanet.com #
 
PREVIOUS NEXT
Tagged: #php #remove #element #array
ADD COMMENT
Topic
Name
2+3 =