C# 字符串在php上有换行符到unity
$rename是字符串,我将在unity-c中再次使用它进行比较# 但问题是 我尝试使用==和String.Equals() 实例 我使用unity www http获得$rename并将其保存在字符串temp中C# 字符串在php上有换行符到unity,c#,php,string,unity3d,C#,Php,String,Unity3d,$rename是字符串,我将在unity-c中再次使用它进行比较# 但问题是 我尝试使用==和String.Equals() 实例 我使用unity www http获得$rename并将其保存在字符串temp中 if($action == "NewUser") { $action ="INSERT INTO userdata VALUES ()"; $result = mysqli_query($con,$action); $lastid = mysqli_insert
if($action == "NewUser")
{
$action ="INSERT INTO userdata VALUES ()";
$result = mysqli_query($con,$action);
$lastid = mysqli_insert_id($con);
$rename = "guest".$lastid;
echo $rename;
}
结果是假的
if("guest11" == temp)
结果是假的
if("guest11" == temp)
我怀疑它在我的绳子后面有什么东西
我试试看
if(String.Equals("guest11",temp))
结果应该是guest11guess
但事实并非如此
guest11\n按
这可能是PHP代码中的其他地方,或者是一个统一的怪癖。关闭?>
标记后,在PHP文件中搜索任何换行符
否则,您可以temp.Replace(“\n”,”)