Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
好的,所以对于这个简单的 php 函数:
$FBIDs = "1,15,16,18,30"; $FBArr = explode(",", $FBIds);
print_r($FBArr);
输出是:
Array ( [0] => )
难道我做错了什么?我瞎了吗?为什么这不给我一个以数字为元素的数组?这让我发疯了!
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.
$FBIDs
$FBIds