Guest User

Untitled

a guest
Jan 22nd, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. $total = array();
  2. foreach ($info as $cx){
  3. if (array_key_exists($cx->caixa, $total){
  4. $total[$cx->caixa]++;
  5. }else{
  6. %total[$cx->caixa] = 1;
  7. }
  8. }
  9. echo '<pre>';
  10. print_r($total);
Add Comment
Please, Sign In to add comment