Reputation:
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
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