Jump to content

Getting values from an Array for Flash


Timmyhavoc

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.