note 52207 added to function.image-type-to-extension
| From: | Golf at dds dot nl | Date: | Sun, 24 Apr 2005 14:23:45 +0000 |
| Subject: | note 52207 added to function.image-type-to-extension | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88489@lists.php.net to get a copy of this message | ||
To get the "dot" part of this funtion working, one needs to change the following line
from:
$dot = $include_dot ? $dot.'' : '';
to:
$dot = $include_dot ? $dot.'.' : '';
I also recommend to change the following line from:
function image_type_to_extension($imagetype,$include_dot=true)
to:
function image_type_to_extension($imagetype,$include_dot=false)
(This so that one gets a result without the dot by default, witch is nice when one needs to compair
it later on)...
----
Manual Page -- http://www.php.net/manual/en/function.image-type-to-extension.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52207
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52207&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52207&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52207&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52207&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52207&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52207&report=yes
Search -- http://master.php.net/manage/user-notes.php