Tell me what are the functions to be used to get the image's properties (size, width and height)?



Tell me what are the functions to be used to get the image's properties (size, width and height..

Answer / Deepa Sinha

To get image properties in PHP, you can use getimagesize() or getimagesizefromstring(). These functions return an array containing information about the image including its width, height, and type.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What are the rules to determine the “truth” of any value which is not already of the boolean type?

1 Answers  


Which programming language does php resemble?

1 Answers  


How to get no of arguments passed to a PHP Function?

1 Answers  


How to assigning a new character in a string using php?

1 Answers  


How to find the position of the first occurrence of a substring in a string?

1 Answers  


What is $_ get and $_ post in php?

1 Answers  


What is a substring in php?

1 Answers  


Does csrf token change?

1 Answers  


What would occur if a fatal error was thrown in your php program?

1 Answers  


Why is used in php?

1 Answers  


How to delete cookie files on your computer?

1 Answers  


•What is the difference between “mysql_fetch_array” and “mysql_fetch_object?

2 Answers   Infotech,


Categories