Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. $j=0;
  2.                
  3. for ($i=0; $i<count($data); $i++)
  4. {
  5.       if ($data[$i]['action'] === 'reply_staff')
  6.       {
  7.            $reply[$j]['staff'] = $data[$i]['action_date'];
  8.            $j++;
  9.       }
  10.                        
  11.     if ($data[$i]['action'] === 'reply_user')
  12.     {
  13.           $reply[$j]['user'] = $data[$i]['action_date'];
  14.           $j++;
  15.      }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement