Jump to content

Multi-Deminsional Arrays


$cripts

Recommended Posts

I have An Array

Array ( [0] => games,

[teams] => Array ( [0] => gameid )

);

The problem im having is I made a function to implode this array

foreach($array as $parent)
{
	if(is_array($parent))
	{
		while(list($key, $value) = each($parent))
		{
			echo $key.value;
		}
	}
	else
	{
		echo $parent;
	}
}

From this i can only get 0,gameid,games While i need to get team,gameid,games

and i cannot fiqure out how to do this....

Link to comment
https://forums.phpfreaks.com/topic/39150-multi-deminsional-arrays/
Share on other sites

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.