Code

Added new in_array_strict method which defaults to a strict mode.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Jul 2011 06:03:21 +0000 (06:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Jul 2011 06:03:21 +0000 (06:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20951 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/functions.inc

index df315b676a7dc0dcf40626ec3a62370387ce7f7f..ed0491bd325cabd9f927c973a49f87672453bbbd 100644 (file)
@@ -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:
 ?>