note 37180 added to function.imagetypes

From: Date: Thu, 06 Nov 2003 00:32:12 +0000
Subject: note 37180 added to function.imagetypes
Groups: php.notes 
Request: Send a blank email to php-notes+get-59967@lists.php.net to get a copy of this message
Why not use this function? <?php function getSupportedImageTypes() { $aSupportedTypes = array(); $aPossibleImageTypeBits = array( IMG_GIF=>'GIF', IMG_JPG=>'JPG', IMG_PNG=>'PNG', IMG_WBMP=>'WBMP' ); foreach ($aPossibleImageTypeBits as $iImageTypeBits => $sImageTypeString) { if (imagetypes() & $iImageTypeBits) { $aSupportedTypes[] = $sImageTypeString; } } return $aSupportedTypes; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.imagetypes.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37180 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37180&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37180&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59967) next »