开发者

Turn integers into an array

Well I'm using the (MySQL: id is int data type)

GROUP_CONCAT(id) AS ids 
Example output = 1,2,3,4,5; 

and then turn whats returned into an array but it keeps coming back as a blob, I need the integers to be individually split.

Array
(
[0] => 1,2,3,4,5
)

Any ideas?

开发者_JAVA百科

Thanks a lot


$numbers = explode(',', $numbers[0]);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜