getimagesize() is a PHP function that returns an array containing information about the size and type of an image file. It takes the file path as the input parameter and returns an array of information about the image.
The returned array contains the following information:
Index 0: the width of the image in pixels
Index 1: the height of the image in pixels
Index 2: the type of the image (as an integer), such as GIF, JPEG, PNG, etc.
Index 3: a string describing the type of the image, such as "GIF", "JPEG", "PNG", etc.
Index "mime": the MIME type of the image
<?php
list($width, $height) = getimagesize('Your image path');
echo 'width'.$width.'px and Height'.$height.'px';
?>
Today we will learn how to verify email id while signup. it's very important for the real user. You ..
This is a common problem for those of you who are new to coding. While coding we often make some syn..
Warning: session start() [function.session-start]: Cannot send session cache limiter - headers alrea..
Before we use the PDO, we will know why we will use PDO.PDO Only supports object-oriented.It has man..
Deprecated: autoload() is deprecated, use spl autoload register() instead. How to replace this (my a..
getimagesize() is a PHP function that returns an array containing information about the size and typ..
Today we will know - How to login with otp in php. Here we will use php,mysql & ajax. Before tha..
Get the latest news and updates by signing up to our daily newsletter.We won't sell your email or spam you !