note 53817 added to function.getimagesize

From: Date: Tue, 14 Jun 2005 10:21:18 +0000
Subject: note 53817 added to function.getimagesize
Groups: php.notes 
Request: Send a blank email to php-notes+get-90402@lists.php.net to get a copy of this message
It's a simple function, that return a valid xhtml code width size and heigth ( because in xhtml attribute height is invalid ) <? function _getImageSize( $img ) { list($width, $height, $type, $attr) = getimagesize($img); $attr = "style=\"width: ".$width."px; height: ".$height."px;\""; return array('0'=>$width,'1'=>$height,'2'=>$type,'3'=>$attr); } ?> ---- Manual Page -- http://www.php.net/manual/en/function.getimagesize.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53817 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53817&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53817&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53817&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53817&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53817&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53817&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90402) next »