Sakurada_Jun

Untitled

Jan 3rd, 2013
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.32 KB | None | 0 0
  1. $last_post_num = 1082309;          
  2. $posts = array_filter($posts, function($v) use (&$posts,&$last_post_num) {
  3.        
  4.         $k = key($posts);
  5.         if ($k > $last_post_num){
  6.             next($posts);
  7.             return true;
  8.         }
  9.         else {
  10.             next($posts);
  11.             return false;
  12.         }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment