@@ -102,42 +102,6 @@ function array_multisort(array &$array1, $array1_sort_order = SORT_ASC, $array1_
102
102
}
103
103
104
104
105
- /**
106
- * Searches haystack for needle.
107
- *
108
- * @param mixed $needle The searched value.
109
- *
110
- * If needle is a string, the comparison is done
111
- * in a case-sensitive manner.
112
- * @param array $haystack The array.
113
- * @param bool $strict If the third parameter strict is set to TRUE
114
- * then the array_search function will search for
115
- * identical elements in the
116
- * haystack. This means it will also perform a
117
- * strict type comparison of the
118
- * needle in the haystack,
119
- * and objects must be the same instance.
120
- * @return int|string Returns the key for needle if it is found in the
121
- * array, FALSE otherwise.
122
- *
123
- * If needle is found in haystack
124
- * more than once, the first matching key is returned. To return the keys for
125
- * all matching values, use array_keys with the optional
126
- * search_value parameter instead.
127
- * @throws ArrayException
128
- *
129
- */
130
- function array_search ($ needle , array $ haystack , bool $ strict = false )
131
- {
132
- error_clear_last ();
133
- $ result = \array_search ($ needle , $ haystack , $ strict );
134
- if ($ result === false ) {
135
- throw ArrayException::createFromPhpError ();
136
- }
137
- return $ result ;
138
- }
139
-
140
-
141
105
/**
142
106
* Applies the user-defined callback function to each
143
107
* element of the array. This function will recurse
0 commit comments