Answer the question
In order to leave comments, you need to log in
How to make a counter on the elements of an array?
A counter that will loop from 0 to 2 in a loop over the elements of an array and call at each step of the loop over the elements of another array
. Assume arrays $arResult["ITEMS"] array element $array with the corresponding index.
Answer the question
In order to leave comments, you need to log in
You can clarify your question.
At the moment comes to mind
foreach ($array1 as $key => $value) {
print $array2[$key];
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question