note 31594 added to function.constant
| From: | Andre at rack1 dot php dot net | Date: | Sun, 27 Apr 2003 18:10:37 +0000 |
| Subject: | note 31594 added to function.constant | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47169@lists.php.net to get a copy of this message | ||
Maybe this is useful:
$file_ext is the file Extension of the image
if ( imagetypes() & @constant('IMG_' . strtoupper($file_ext)) )
{
$file_ext = $file_ext == 'jpg' ? 'jpeg' : $file_ext;
$create_func = 'ImageCreateFrom' . $file_ext;
}
--
http://www.php.net/manual/en/function.constant.php
http://master.php.net/manage/user-notes.php?action=edit+31594
http://master.php.net/manage/user-notes.php?action=delete+31594
http://master.php.net/manage/user-notes.php?action=reject+31594