> Getting image width and height using PHP ~ Online tutorial

Getting image width and height using PHP

Getting image width and height using PHP

In Coding we are getting size of image using function getimagesize. it is get width and height of given object.


Coding


<?php

  list($width, $height, $type, $attr) = getimagesize("C:\wamp\www\Batista.jpg");

  echo "Image width <br/>" . $width."<br/>";
  echo "Image height <br/>" . $height."<br/>";
  echo "Image type <br/>" . $type."<br/>";
  echo "Attribute <br/>" . $attr."<br/>";

?>

Output





Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: