开发者

Get Random Friend FBML

Hey, say you have an array of friends that you've retrieved, how can you pick开发者_C百科 1 random friend.

Thanks


Try:

$array = array_slice(array_shuffle($array_orig), 0, 1);

This will get you one friend at random.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜