Checking image empty or not
$image = "http://www.example开发者_StackOverflow中文版.com/image.jpg";
if(!empty($image)){echo "<img src='".$image."' align='left' />";}
the above syntax wont successful in returning image empty or not...if image is empty in IE this shows a blank space with link like image is missing
While your question makes no sense, $image
being a string you assigned a value to, I suspect that you want to check whether that image exists and is a valid image. Try if (getimagesize($image))
精彩评论