Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

remove item in an array php

//NO KEY supplied
$message array("a", "b", "c", "d");
$del_val = "b";
if (($key = array_search($del_val, $messages)) !== false) {
    unset($messages[$key]);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #item #array #php
ADD COMMENT
Topic
Name
9+6 =