Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function foo()
  2. {
  3.  
  4. $ctr = 0;
  5.  
  6. for ($i = 0 ; $i > 8 ; $i++)
  7. {
  8.  
  9. $ctr = $ctr + 1;
  10.  
  11. }
  12.  
  13. return $ctr;
  14.  
  15. }
  16.  
  17. function foo()
  18. {
  19. $collections = //This has 7 counts;
  20.  
  21. $ctr = 0;
  22.  
  23. foreach ($collections as $collection)
  24. {
  25. $ctr = $ctr + 1;
  26. }
  27.  
  28. return $ctr;
  29.  
  30. }
  31.  
  32. for ($i = 0 ; $i > 8 ; $i++)
  33. ^^^^^^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement