Jump to content

[SOLVED] Multidimensional Array make Single Array?


rasherb

Recommended Posts

Hi!

 

I have an array sort of like this example I found:

 

$cds = array(

  'Christina Aguilera'=>array(

    'Impossible',

    'Beautiful',

    'Dirrty'

  ),

  'Pink'=>array(

    'Just like a pill',

    'Family potrait',

    'Missundaztood'

  ),

  'Kelly Rowland'=>array(

    'Stole',

    'Obsession',

    'Past 12'

  )

 

What I need to do is pull off all of the, for example, 'Pink' albums and make a single array from those values.

 

 

This is my real array:

$importarray[$i][$m]

 

I need to make an array of all the sub-values ($m) at a certain value of $i.

 

What can I do?

 

Thanks!

 

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.