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 polymorphism php?
Write the code for upload a video file in PHP.How will You Play this in Your Page.?
2 Answers ASD Lab, Convex Digital,
How can we submit a form without a submit button? What is the use of obj_star?
2 Answers Rushmore Consultancy,
What is local variable in php?
How many data types are there in php?
What is csrf token in php?
What are the basic steps to store PHP session in to Database?
What is the basic function to search files for lines (or other units of text) that contain a pattern.
Explain the syntax for ‘foreach’ loop with example.
Do you know what is the use of rand() in php?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
Why laravel is best php framework?