Generic filters
Exact matches only

Show data together from different arrays, and mysql querys

28th June 2013

Php - Arrays

php codehaven

If you have data coming from two different querys and they become two different arrays, combining them is not always an answer.

There for when placed into an array ([]) they can be looped with a foreach to count how many, then looped together.

Note: they must have the same amount in each array or one may finish before the other…..

Was this code snippet helpful?