Changeset 2925
- Timestamp:
- 06/27/2008 09:48:03 AM (5 months ago)
- Files:
-
- 1 modified
-
tags/2.1.3/system/helpers/arr.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tags/2.1.3/system/helpers/arr.php
r1970 r2925 21 21 * @return array 22 22 */ 23 public function rotate($source_array, $keep_keys = TRUE)23 public static function rotate($source_array, $keep_keys = TRUE) 24 24 { 25 25 $new_array = array(); … … 43 43 * @return mixed value of the requested array key 44 44 */ 45 public function remove($key, & $array)45 public static function remove($key, & $array) 46 46 { 47 47 if ( ! array_key_exists($key, $array)) … … 62 62 * @return array 63 63 */ 64 public function unshift_assoc( array & $array, $key, $val)64 public static function unshift_assoc( array & $array, $key, $val) 65 65 { 66 66 $array = array_reverse($array, TRUE); … … 80 80 * @return integer 81 81 */ 82 public function binary_search($needle, $haystack, $nearest = FALSE, $sort = FALSE)82 public static function binary_search($needle, $haystack, $nearest = FALSE, $sort = FALSE) 83 83 { 84 84 if ($sort)
