Home >Backend Development >PHP Tutorial >The php getimagesize function obtains image width and height information

The php getimagesize function obtains image width and height information

WBOY
WBOYOriginal
2016-07-25 08:51:381164browse
  1. $images_array = array("http://static.zend.com/img/logo.gif");
  2. foreach($images_array as $image)
  3. {
  4. list($width, $height, $type, $attr) = getimagesize($image);
  5. $new_height = (int)(192 / $width * $height);
  6. echo '
  7. ';
  8. }
复制代码


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn