0

好的,所以对于这个简单的 php 函数:

$FBIDs = "1,15,16,18,30";
$FBArr = explode(",", $FBIds);

print_r($FBArr);

输出是:

Array ( [0] => )

难道我做错了什么?我瞎了吗?为什么这不给我一个以数字为元素的数组?这让我发疯了!

4

1 回答 1

4

The variable you're trying to explode is $FBIDs, but you're exploding $FBIds; The final "d" needs to be capitalized and it should work.

于 2012-07-16T12:56:45.723 回答