开发者

Turn integers into an array

开发者 https://www.devze.com 2023-03-22 22:56 出处:网络
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 inte

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

精彩评论

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