MikeDXUNL Posted June 8, 2008 Share Posted June 8, 2008 <?php foreach($achimg[1] as $key => $val) { if (($key % 2) == 0) { $in_achimg = mysql_real_escape_string($achimg[1][$key]); } } ?> when I echo $in_achimg."<br />"; it spits out all the correct data. how would I go about putting these results into a new array? Thanks in Advance, Mike Link to comment https://forums.phpfreaks.com/topic/109202-solved-making-an-array-out-of-a-previous-array/ Share on other sites More sharing options...
DarkWater Posted June 8, 2008 Share Posted June 8, 2008 $in_achimg[] = mysql_real_escape_string($achimg[1][$key]); Link to comment https://forums.phpfreaks.com/topic/109202-solved-making-an-array-out-of-a-previous-array/#findComment-560176 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.