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 Quote 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++; } Quote Link to comment https://forums.phpfreaks.com/topic/166182-print-alternative-values/#findComment-876330 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.