Get the width and height of an image using a function in PHP


/ Published in: PHP
Save to your folder(s)

When you run this script you will see the result like this

Image width 379
Image height 344
Image type 2
Image attribute width="379" height="344"

You will get the width, height, type of an image and also attribute of an image, I use this function in my image upload form.

URL: http://www.phpeasystep.com/workshopview.php?id=25

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.