gpt4 book ai didi

php - 在 php int 更改上显示图像

转载 作者:搜寻专家 更新时间:2023-10-31 20:47:59 28 4
gpt4 key购买 nike

在 PHP 中,当 int 从 0 变为 1 时,如何让它显示图像?我有;

$url = "forums.bukkit.org/alerts.json";
$page = file_get_contents($url);
$json_arr = json_decode($string,true);
return $json_arr['_visitor_alertsUnread'];

当 json_arr >0 时,如何让它显示图像?

最佳答案

if($json_arr['_visitor_alertsUnread'])
echo "seen picture!";
else
echo "not seen picture!";

关于php - 在 php int 更改上显示图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11181819/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com