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! Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.