[PHP] Image size and dimensions

I made a form that sends an email with an image attachement. Now, how do I check the file size in kilobytes, dimensions (width and height) in pixels, and file type (gif or jpg)?

Is it something like:

$att_size = $_FILES[‘att’][‘size’];