From: hickert Date: Wed, 27 Jul 2011 06:03:21 +0000 (+0000) Subject: Added new in_array_strict method which defaults to a strict mode. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e643ab702b6f8466ed913442e8aaee0089902cb6;p=gosa.git Added new in_array_strict method which defaults to a strict mode. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20951 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index df315b676..ed0491bd3 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -3938,5 +3938,12 @@ function gosa_fopen($filename, $mode) } } + +/*\brief Our own in_array method which defaults to a strict mode. + */ +function in_array_strict($needle, $haystack, $strict = TRUE){ + return(in_array($needle, $haystack, $strict)); +} + // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?>