sandy1028 Posted July 16, 2009 Share Posted July 16, 2009 Hi, I have two arrays $array1 = array("A","B","C"); $array2 =array("1","2","3"); How to print the alternative values from each array. for example: The output should be similar to A 1 B 2 C 3 Link to comment https://forums.phpfreaks.com/topic/166182-print-alternative-values/ Share on other sites More sharing options...
Zane Posted July 16, 2009 Share Posted July 16, 2009 $i = 0; while($i echo $array1[$i]; echo $array2[$i]; $i++; } Link to comment https://forums.phpfreaks.com/topic/166182-print-alternative-values/#findComment-876330 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.