ok I looked at some functions and it seemed to me unlucky to find any,
I want to filter an array to highlight a specific array that contains some string
Here is an example:
$array = array(1 => 'January', 'February', 'March');
$to_remove = "Jan"; // or jan || jAn, .. no case sensitivity
$strip = somefunction($array, $to_remove);
print_r($strip);
he must return
[1] => February
[2] => March
function that searches for a string in an array if the string found splits the entire array
source
share