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?

Answers were Sorted based on User's Feedback



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

Answer / laxmikant

getimagesize();

Is This Answer Correct ?    5 Yes 3 No

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

Answer / 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

More PHP Interview Questions

What does sign mean php?

0 Answers  


my english is not too good then what we apply for a php programer post

0 Answers  


What is default session time and path in PHP. How to change it?

0 Answers  


What are the advantages and disadvantages of Cascading Style Sheets?

1 Answers  


What is php simple definition?

0 Answers  


Is php a case sensitive language?

0 Answers  


What is a php class?

0 Answers  


How to remove values saved in the current session?

0 Answers  


Explain me soundex() and metaphone()?

0 Answers  


What is slim framework?

0 Answers  


How to convert a timezone from one to another ?

1 Answers  


What is php destruct?

0 Answers  


Categories