Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string(14) "prices_product"
- array(2) {
- [0]=>
- object(stdClass)#307 (2) {
- ["price"]=>
- string(3) "0.4"
- ["age"]=>
- string(2) "14"
- }
- [1]=>
- object(stdClass)#293 (2) {
- ["price"]=>
- string(4) "0.76"
- ["age"]=>
- string(2) "39"
- }
- }
- string(4) "ages"
- array(3) {
- [0]=>
- int(39)
- [1]=>
- int(39)
- [2]=>
- int(14)
- }
- // How to get as many prices_product as ages, with the correct price (matching age)
- // Output:
- string(14) "prices_product"
- array(2) {
- [0]=>
- object(stdClass)#307 (2) {
- ["price"]=>
- string(3) "0.4"
- ["age"]=>
- string(2) "14"
- }
- [1]=>
- object(stdClass)#293 (2) {
- ["price"]=>
- string(4) "0.76"
- ["age"]=>
- string(2) "39"
- }
- [2]=>
- object(stdClass)#293 (2) {
- ["price"]=>
- string(4) "0.76"
- ["age"]=>
- string(2) "39"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement