note 52207 deleted from function.image-type-to-extension by nlopess

From: Date: Sat, 01 Sep 2007 16:30:18 +0000
Subject: note 52207 deleted from function.image-type-to-extension by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-130049@lists.php.net to get a copy of this message
Note Submitter: Golf at dds dot nl ---- 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)...

« previous php.notes (#130049) next »