php:比较UUID和字符串
以下代码不起作用:php:比较UUID和字符串,php,uuid,Php,Uuid,以下代码不起作用: if ($entryByPhaseID["activity_ID"] == "50e5cde678bf94.62826693") { echo $entryByPhaseID["activity_ID"]. "<BR>"; $DIB = $DIB + $entryByPhaseID["net_value"]
if ($entryByPhaseID["activity_ID"] == "50e5cde678bf94.62826693")
{
echo $entryByPhaseID["activity_ID"]. "<BR>";
$DIB = $DIB + $entryByPhaseID["net_value"];
}
if($entryByPhaseID[“活动ID”]=“50e5cde678bf94.62826693”)
{
echo$entryByPhaseID[“活动ID”]。“
”;
$DIB=$DIB+$entryByPhaseID[“净值”];
}
我试图将检索到的UUID与查询$entryByPhaseID[“activity_ID”]及其字符串表示形式进行比较。我从来没有看到回音信息。。。你能帮忙吗?谢谢。要调试,请添加
var\u dump($entryByPhaseID[“活动ID”)代码>在您的if
行之前查看它的值。谢谢庞。错误出现在前面的if语句中,我使用了=而不是==。你的建议为我指明了正确的方向。很乐意帮忙。在调试中非常有用。您甚至可以使用var\u dump($entryByPhaseID)代码>转储数组中的所有内容。:-)