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 are the uses of explode() function?

0 Answers  


Can php variables have numbers?

0 Answers  


What is the use of array_search() in php?

0 Answers  


What is polymorphism with example in php?

0 Answers  


Tell me what are sql injections, how do you prevent them and what are the best practices?

0 Answers  


what are the current or latest versions of LAMP ? Linux, Apache, MySql, PHP

4 Answers  


What is the meaning of symbol '$' in jquery?

0 Answers  


What is the difference between explode () and split () functions in php?

0 Answers  


How will you create a mysql database using php ?

3 Answers  


How to generate pdf file in php?

1 Answers  


How to delete a file from the system?

0 Answers  


What is lamp in php?

0 Answers  


Categories