Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can I find the width and height of an image resource?

Answer Posted / jude jeevanraj.p

It is often useful to know the width and height of an image
resource. This can be achieved with the functions imagesx
and imagesy, like this:

<?php
$img = imagecreatetruecolor(400, 100);
echo imagesx($img); // 400
echo imagesy($img); // 100
?>

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When to use single quotes, double quotes, and backticks?

1033


How is traits used in php?

1044


What is meant by urlencode and urldecode?

1134


What is the difference between apache and tomcat?

1063


What is empty php?

1028


What is isset post?

1068


How many keywords are there in php?

1173


What is api example?

1039


What is php simple definition?

1025


How do I run a php file?

1024


What is variable and data type?

1096


How to fix "headers already sent" error in php

1119


Is php a mvc?

1000


Is array function in php?

1059


What kind of things have you done on the social side?

9078