I guess this will solve your need:
<?php
$A=array(1,2,3);
$B=array('a','b','c');
$C=array('x','y','z');
foreach (array_map(NULL, $A, $B, $C) as $x) {
list($a, $b, $c) = $x;
echo "$a $b $c\n";
}
More Related Contents:
- Performance of FOR vs FOREACH in PHP
- How to make array inside in foreach loop – php? [closed]
- Can't echo items from array
- PHP Foreach returns separated(individual) arrays
- Strange behavior Of foreach
- Two arrays in foreach loop
- Modify array values in foreach loop
- PHP foreach change original array values [duplicate]
- How can I loop through two arrays at once? [duplicate]
- How to access mysql result set data with a foreach loop
- How do you remove an array element in a foreach loop?
- Strange behavior of foreach when using reference: foreach ($a as &$v) { … }
- PHP foreach with Nested Array?
- Foreach loop inside array
- How to delete object from array inside foreach loop?
- What is better in a foreach loop… using the & symbol or reassigning based on key?
- Unsetting array values in a foreach loop [duplicate]
- How to access first level keys of a 2d array with a foreach loop? [duplicate]
- PHP: Get the key from an array in a foreach loop [duplicate]
- case-insensitive array_unique
- While destructuring an array, can the same element value be accessed more than once?
- Multiple index variables in PHP foreach loop
- php multidimensional array get values
- How to check if variable is array?… or something array-like
- How can I sort arrays and data in PHP?
- How to sort an array of UTF-8 strings?
- How to trim white spaces of array values in php
- PHP: do arrays have a maximum size?
- Is there a way to loop through a multidimensional array without knowing it’s depth?
- break out of if and foreach