Advertisement
Guest User

Untitled

a guest
Jul 10th, 2014
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. Array
  2. (
  3. [0] => Array
  4. (
  5. [month] => April-2014
  6. [total_booking] => 2
  7. )
  8.  
  9. [1] => Array
  10. (
  11. [month] => May-2014
  12. [total_booking] => 5
  13. )
  14.  
  15. [2] => Array
  16. (
  17. [month] => June-2014
  18. [total_booking] => 25
  19. )
  20.  
  21. [3] => Array
  22. (
  23. [month] => October-2013
  24. [total_booking] => 1
  25. )
  26.  
  27. [4] => Array
  28. (
  29. [month] => July-2014
  30. [total_booking] => 4
  31. )
  32.  
  33. )
  34.  
  35. Array
  36. (
  37. [month] => January-2014
  38. [total_booking] => 0
  39. )
  40.  
  41. foreach ($newarray as $month => total_booking) {
  42. //sorting
  43.  
  44. }
  45.  
  46.  
  47.  
  48. foreach ($newarray as $month => total_booking) {
  49. //if there is no month in array betwean to_month and from_month it
  50.  
  51. should be included in correct place as sorted
  52.  
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement