Changes between Initial Version and Version 1 of Ticket #34525, comment 3
- Timestamp:
- 11/02/2015 09:56:51 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34525, comment 3
initial v1 28 28 //---------------------------------- 29 29 30 // Semi-replacement #1 30 31 // @link http://php.net/manual/en/function.array-unique.php#98453 31 32 function wp_array_unique1( $arr = array() ) … … 38 39 } 39 40 41 // Semi-replacement #2 40 42 // @link http://www.puremango.co.uk/2010/06/fast-php-array_unique-for-removing-duplicates/#comment-202704 41 43 function wp_array_unique2( $arr = array() ) … … 49 51 } 50 52 53 // Semi-replacement #3 51 54 // @link http://stackoverflow.com/questions/8321620/array-unique-vs-array-flip 52 55 function wp_array_unique3( $arr = array() ) … … 56 59 } 57 60 61 // Semi-replacement #4 58 62 // @link http://stackoverflow.com/questions/8321620/array-unique-vs-array-flip 59 63 function wp_array_unique4( $arr = array() ) … … 62 66 } 63 67 68 // Semi-replacement #5 64 69 // @link http://stackoverflow.com/questions/8321620/array-unique-vs-array-flip 65 70 function wp_array_unique5( $arr = array() ) … … 83 88 ); 84 89 85 //------------------ -86 // Test comparis ions87 //------------------ -90 //------------------ 91 // Test comparisons 92 //------------------ 88 93 echo 'Input:'; 89 94 print_r( $input );