How can I find the width and height of an image resource?
Answers were Sorted based on User's Feedback
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 |
What is string function sql?
What type of operation is needed when passing values through a form or an url?
how much can a 1yr experienced php programmer earn in india?
9 Answers TCS, Tops Technologies,
what the new feature add in php 7.2?
hello myself Atul saini completed mca in 2007 due to personal problem i cant do job.now i really search 4 a job.i dont know where i go i think simple think is learn php anyone help me wat i can do for a job. thanks
Tell me how to find current date and time?
What are objects in php?
How to convert a string to uppercase in php?
what is the difference between GET and POST?
21 Answers AdVine, Evon Technologies, GVD Infotech, RedAlkemi, SoftSol,
What are the two main string operators?
How can I reverse sort an array keeping the correlation between the index and value?
2 Answers Rushmore Consultancy,
What is the php function that removes the first element of the array and returns it?