user6280070
user6280070

Reputation:

How to print the value of an array without knowing the name of the index value

foreach($streams as $stream){
  parse_str($stream,$data);
  }

I don't know the value of the index or key of the array $data, as i have parsed value into it. I want to know how can we print the all the values in the array without knowing the value of the key.

Upvotes: 3

Views: 384

Answers (1)

Sumit
Sumit

Reputation: 474

You can use the php implode function for printing the value of the array

foreach($streams as $stream){
 parse_str($stream,$data);
echo implode(" ",$data). '<br>';
}

Upvotes: 2

Related Questions