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 the meaning of a persistent cookie?
What is csrf token and why it is required?
How we can get the number of elements in an array?
Will a comparison of an integer 12 and a string "13" work in php?
Does jwt protect against csrf?
How to compare two strings with comparison operators in php?
what is "mysql_pconnect", i know mysql_connect but what it is pconnect is their?
i am a 3yr diploma holder(CSE) from bangalore and i got job as php developer.. starting 7.5k... but i dont know what is the future carreer scop for diploma holders(for me)...plz help
Does csrf token change?
How does html form submit work?
Do you know what is php?
Explain what is the function file_get_contents() usefull for?