Advertisement
Guest User

stackoverflow question

a guest
Oct 30th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.22 KB | None | 0 0
  1. Original array
  2. Array
  3. (
  4.     [10] => Array
  5.         (
  6.             [title] => Hello world!
  7.             [ssm_featured_post_id] => 1
  8.         )
  9.  
  10. )
  11. New array
  12. Array
  13. (
  14.     [0] => Array
  15.         (
  16.             [title] => awesome post
  17.             [ssm_featured_post_id] => 73
  18.         )
  19.  
  20.     [1] => Array
  21.         (
  22.             [title] => this is the newest post
  23.             [ssm_featured_post_id] => 70
  24.         )
  25.  
  26.     [2] => Array
  27.         (
  28.             [title] => sdfsfsdf
  29.             [ssm_featured_post_id] => 63
  30.         )
  31.  
  32.     [3] => Array
  33.         (
  34.             [title] => test
  35.             [ssm_featured_post_id] => 49
  36.         )
  37.  
  38.     [4] => Array
  39.         (
  40.             [title] => Hello world!
  41.             [ssm_featured_post_id] => 1
  42.         )
  43.  
  44. )
  45. AFter Merge
  46. Array
  47. (
  48.     [0] => Array
  49.         (
  50.             [title] => Hello world!
  51.             [ssm_featured_post_id] => 1
  52.         )
  53.  
  54.     [1] => Array
  55.         (
  56.             [title] => awesome post
  57.             [ssm_featured_post_id] => 73
  58.         )
  59.  
  60.     [2] => Array
  61.         (
  62.             [title] => this is the newest post
  63.             [ssm_featured_post_id] => 70
  64.         )
  65.  
  66.     [3] => Array
  67.         (
  68.             [title] => sdfsfsdf
  69.             [ssm_featured_post_id] => 63
  70.         )
  71.  
  72.     [4] => Array
  73.         (
  74.             [title] => test
  75.             [ssm_featured_post_id] => 49
  76.         )
  77.  
  78.     [5] => Array
  79.         (
  80.             [title] => Hello world!
  81.             [ssm_featured_post_id] => 1
  82.         )
  83.  
  84. )
  85. AFter uasort
  86. Array
  87. (
  88.     [0] => Array
  89.         (
  90.             [title] => Hello world!
  91.             [ssm_featured_post_id] => 1
  92.         )
  93.  
  94.     [5] => Array
  95.         (
  96.             [title] => Hello world!
  97.             [ssm_featured_post_id] => 1
  98.         )
  99.  
  100.     [4] => Array
  101.         (
  102.             [title] => test
  103.             [ssm_featured_post_id] => 49
  104.         )
  105.  
  106.     [3] => Array
  107.         (
  108.             [title] => sdfsfsdf
  109.             [ssm_featured_post_id] => 63
  110.         )
  111.  
  112.     [2] => Array
  113.         (
  114.             [title] => this is the newest post
  115.             [ssm_featured_post_id] => 70
  116.         )
  117.  
  118.     [1] => Array
  119.         (
  120.             [title] => awesome post
  121.             [ssm_featured_post_id] => 73
  122.         )
  123.  
  124. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement