note 130314 added to function.imagetypes

From: Date: Sun, 25 May 2025 08:30:07 +0000
Subject: note 130314 added to function.imagetypes
Groups: php.notes 
Request: Send a blank email to php-notes+get-222164@lists.php.net to get a copy of this message
In case anyone is wondering what values these constants have <?php $imagetypes = array('IMG_AVIF', 'IMG_BMP', 'IMG_GIF', 'IMG_JPG', 'IMG_PNG', 'IMG_WBMP', 'IMG_XPM', 'IMG_WEBP'); foreach ($imagetypes as $imagetype) { echo constant($imagetype) . "\t" . $imagetype . "\r\n"; } /* would output 256 IMG_AVIF 64 IMG_BMP 1 IMG_GIF 2 IMG_JPG 4 IMG_PNG 8 IMG_WBMP 16 IMG_XPM 32 IMG_WEBP */ ?> ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.5.137 (proxied: 94.205.47.84) ---- Manual Page -- https://php.net/manual/en/function.imagetypes.php Edit -- https://main.php.net/note/edit/130314 Del: integrated -- https://main.php.net/note/delete/130314/integrated Del: useless -- https://main.php.net/note/delete/130314/useless Del: bad code -- https://main.php.net/note/delete/130314/bad+code Del: spam -- https://main.php.net/note/delete/130314/spam Del: non-english -- https://main.php.net/note/delete/130314/non-english Del: in docs -- https://main.php.net/note/delete/130314/in+docs Del: other reasons-- https://main.php.net/note/delete/130314 Reject -- https://main.php.net/note/reject/130314 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#222164) next »