Timmyhavoc Posted November 28, 2007 Share Posted November 28, 2007 HI there I have the following array: $x[$y][] = array('a' => $a, 'b' => 'b', 'c' => $c); And i would like to print all the results for $c so they read something like: $c[0] = 'toaster' $c[1] = 'baked potato' $c[2] = 'tuesday' (This way i can convert the values to flash varialbes later on) Ive looked at all the basic Array tutorials but have found nothing that matches what Im looking for. Please help! Link to comment https://forums.phpfreaks.com/topic/79267-getting-values-from-an-array-for-flash/ Share on other sites More sharing options...
trq Posted November 28, 2007 Share Posted November 28, 2007 You'll need to be a little clear I think. Maybe... <?php $c = array('toaster','baked potato','tuesday'); $x[$y][] = array('a' => $a, 'b' => 'b', 'c' => $c); foreach($x[$y][0] as $k => $v) { echo '$c[' . $k . "] = '$v'\n"; } ?> is what your after but its pretty hard to tell. Link to comment https://forums.phpfreaks.com/topic/79267-getting-values-from-an-array-for-flash/#findComment-401248 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.