Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #34525, comment 3


Ignore:
Timestamp:
11/02/2015 09:56:51 AM (9 years ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #34525, comment 3

    initial v1  
    2828//----------------------------------
    2929
     30// Semi-replacement #1
    3031// @link http://php.net/manual/en/function.array-unique.php#98453
    3132function wp_array_unique1( $arr = array() )
     
    3839}       
    3940
     41// Semi-replacement #2
    4042// @link http://www.puremango.co.uk/2010/06/fast-php-array_unique-for-removing-duplicates/#comment-202704
    4143function wp_array_unique2( $arr = array() )
     
    4951}
    5052
     53// Semi-replacement #3
    5154// @link http://stackoverflow.com/questions/8321620/array-unique-vs-array-flip
    5255function wp_array_unique3( $arr = array() )
     
    5659}
    5760
     61// Semi-replacement #4
    5862// @link http://stackoverflow.com/questions/8321620/array-unique-vs-array-flip
    5963function wp_array_unique4( $arr = array() )
     
    6266}
    6367
     68// Semi-replacement #5
    6469// @link http://stackoverflow.com/questions/8321620/array-unique-vs-array-flip
    6570function wp_array_unique5( $arr = array() )
     
    8388);
    8489
    85 //-------------------
    86 // Test comparisions
    87 //-------------------
     90//------------------
     91// Test comparisons
     92//------------------
    8893echo 'Input:';
    8994print_r( $input );