php- How to get image height and width

# LIST IMAGE INFO list($width, $height, $type, $attr) = getimagesize($_FILES[“img”][‘tmp_name’]); echo $width; // shows width echo $height; // shows height