hi All
I am working with PHP for my current project..
In my project I have to execute two resultset values in one for loop
Is there any possible way to achieve this..
I also need any other alternatiive solution regarding this
Thanks in advance.
[RESOLVED] Any way to execute 2 arrays in single for each()
Moderator: General Moderators
[RESOLVED] Any way to execute 2 arrays in single for each()
Last edited by vinoth on Wed Aug 29, 2007 1:40 am, edited 1 time in total.
Re: Any possible way to execute two arrays in single for eac
this requires more information.vinoth wrote:I also need any other alternatiive solution regarding this
Doesn't sound to me like array_merge() will do the trick, as it will put both sets of data into one array. I'm not sure this is what you want?
You could loop through each result set and store them in separate container arrays. Then make your own loop and reference each array inside the loop.
Or, you could simply have a loop inside of another loop (i believe this is not the preferred way of doing it).
You could loop through each result set and store them in separate container arrays. Then make your own loop and reference each array inside the loop.
Or, you could simply have a loop inside of another loop (i believe this is not the preferred way of doing it).
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.