Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. $length = 1;
  2. for($i = 0; $i < count($list); $i++) {
  3. foreach($list[$i]['prices'] as $key => $value) {
  4. sort($list[$i]['prices'][$key]);
  5. if(count($list[$i]['prices'][$key]) > $length) {
  6. array_splice($list[$i]['prices'][$key], $length);
  7. }
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement