How to bind arrays?

Posted by Emily on Stack Overflow See other posts from Stack Overflow or by Emily
Published on 2010-04-15T00:02:05Z Indexed on 2010/04/15 0:23 UTC
Read the original article Hit count: 438

Filed under:
|

Say i have those 3 arrays :

Product(milk,candy,chocolate)
Colors(white,red,black)
Rating(8,7,9)

How to create a loop to bind those arrays so i get 3 variables in each loop : $product $color $rating

So by example i will output like this:

Milk is white and has a rating of 8/10

Candy is red and has a rating of 7/10

Chocolate is black and has a rating of 9/10

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about arrays