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 |
Is php still in demand?
What is rtrim php?
How can I use single quotes in single quotes in php?
What's the difference between __sleep and __wakeup?
How to create the PHP Script to Calculate the Age Using the Inputs Of our Birth date and the Current date?
Write down the code for save an uploaded file in php.
Why super () is used in java?
What is empty php?
What does it mean when it says the csrf token is invalid?
Which is correct about mysqli and pdo?
Do while loops?
hello.. i am b.tech 4th year student. i am confused that i should learning php or java. I have some knowledge of java and developed project in java, but i want to develop my career in php. So plz suggest me , i should go with php or java.