PHP: Return one of several arrays
I have a result that looks like this when I do a print_r($array);
(
[0] => 9开发者_StackOverflow中文版6
[1] => 95
[2] => 94
)
Array
(
[0] => 96
[1] => 95
[2] => 94
)
Array
(
[0] => 96
[1] => 95
[2] => 94
)
How can I simply return something like "96,95,94"? And not return all 3 duplicate instances?
Thanks
print_r($array[0])
If you have 3 repeated Arrays just use the first one.
精彩评论