📜  $_FILES 图像尺寸 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:37.008000             🧑  作者: Mango

代码示例2
if (isset($_FILES['image'])) {
    $filename = $_FILES['image']['tmp_name'];
    list($width, $height) = getimagesize($filename);
    echo $width; 
    echo $height;    
}