note 29009 deleted from function.basename by victor

From: Date: Thu, 30 Jan 2003 18:32:14 +0000
Subject: note 29009 deleted from function.basename by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-43147@lists.php.net to get a copy of this message
hey, fellows! For those who are looking for simple way to get the extension of the file (even if the file name is like: the.path/to/some.file.ext), I suggest something like this: $extension=end(explode(".", $file_name)); Does it work? It does in my scripts! ;) -- Nice day/night!

« previous php.notes (#43147) next »