Advertisement
Guest User

Untitled

a guest
Jun 26th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. string(14) "prices_product"
  2. array(2) {
  3. [0]=>
  4. object(stdClass)#307 (2) {
  5. ["price"]=>
  6. string(3) "0.4"
  7. ["age"]=>
  8. string(2) "14"
  9. }
  10. [1]=>
  11. object(stdClass)#293 (2) {
  12. ["price"]=>
  13. string(4) "0.76"
  14. ["age"]=>
  15. string(2) "39"
  16. }
  17. }
  18. string(4) "ages"
  19. array(3) {
  20. [0]=>
  21. int(39)
  22. [1]=>
  23. int(39)
  24. [2]=>
  25. int(14)
  26. }
  27.  
  28.  
  29. // How to get as many prices_product as ages, with the correct price (matching age)
  30.  
  31.  
  32. // Output:
  33. string(14) "prices_product"
  34. array(2) {
  35. [0]=>
  36. object(stdClass)#307 (2) {
  37. ["price"]=>
  38. string(3) "0.4"
  39. ["age"]=>
  40. string(2) "14"
  41. }
  42. [1]=>
  43. object(stdClass)#293 (2) {
  44. ["price"]=>
  45. string(4) "0.76"
  46. ["age"]=>
  47. string(2) "39"
  48. }
  49. [2]=>
  50. object(stdClass)#293 (2) {
  51. ["price"]=>
  52. string(4) "0.76"
  53. ["age"]=>
  54. string(2) "39"
  55. }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement