array_contains -> in_array

This commit is contained in:
Shish Moom
2009-06-05 12:53:00 -07:00
parent de0164647e
commit f77c6e64cd
8 changed files with 9 additions and 18 deletions

View File

@ -256,15 +256,6 @@ function array_add($array, $element) {
return $array;
}
function array_contains($array, $target) {
foreach($array as $element) {
if($target == $element) {
return true;
}
}
return false;
}
// case insensetive uniqueness
function array_iunique($array) {
$ok = array();