generation-jdr/lib/deltab.php
2017-08-16 17:04:56 +02:00

19 lines
350 B
PHP

<?php
function array_delete_value($array,$search) {
$temp = array();
foreach($array as $key => $value) {
if($value!=$search) $temp[$key] = $value;
}
return $temp;
}
function array_delete_key($array,$search) {
$temp = array();
foreach($array as $key => $value) {
if($key!=$search) $temp[$key] = $value;
}
return $temp;
}
?>