Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 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!";