Saturday, March 30, 2013

PHP's getimagesize function return

<?php
$getimagesize = getimagesize('example/image/path/file.png');
print_r($getimagesize);
exit;
/*
THE ABOVE CODE OUTPUTS:
Array
(
[0] => 1748
[1] => 1165
[2] => 2
[3] => width="1748" height="1165"
[bits] => 8
[channels] => 4
[mime] => image/jpeg
)
*/

No comments:

Post a Comment