这是我到目前为止所得到的:
<?php
function GetRank($userId,$groupId) {
$url = "http://www.roblox.com/Game/LuaWebService/HandleSocialRequest.ashx?method=GetGroupRank&playerid=$userId&groupid=$groupId";
//echo $userId,$groupId;
//$response = readfile($url); // works but returns this (READ HERE)'<Value Type="integer">1337</Value>32'
if ($response) {
return $response;
}
return 'Failure';
}
?>
<Value Type="integer">1337</Value>32
我不想让它返回上面,就像现在一样,我希望它返回1337.不知道如何,我以前从未这样做过。
先谢谢,希望你们理解我q.q
答案 0 :(得分:0)
您可以使用下面的函数从字符串中删除html标记。
用strip_tags($响应);