Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. $combined = array();
  2. if ( !empty( $feed_posts ) ) {
  3. foreach($feed_posts as $post)
  4. {
  5. $combined[$post['date_added']][] = $post; // unix timestamp in order to sort
  6. }
  7. }
  8.  
  9. if ( !empty( $hardnote_photos ) ) {
  10. foreach($hardnote_photos as $photo)
  11. {
  12. $combined[$photo['date_created']][] = $photo; // unix timestamp in order to sort
  13. }
  14. }
  15.  
  16. krsort($combined); // sort the keys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement