GetImageSize generates an array() with 4 values for any of the following images: GIF, JPG, PNG, SWF, SWC, PSD, TIFF, BMP, IFF
Value 0 = width
Value 1 = height
Value 2 = type
Value 3 = width and height for HTML IMG tags
<?php
$size = GetImageSize ("images/a.jpg");
?>
View the docs at PHP GetImageSize() for more information