display width and height of image

display width and height of image

<?php
$size = getimagesize ("test.jpg");
echo $size[3];
?>