开发者

PHP: Return one of several arrays

开发者 https://www.devze.com 2023-01-22 19:50 出处:网络
I have a result that looks like this when I do a print_r($array); ( [0] => 9开发者_StackOverflow中文版6

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消