note 21486 added to function.filetype

From: Date: Tue, 14 May 2002 23:28:15 +0000
Subject: note 21486 added to function.filetype
Groups: php.notes 
Request: Send a blank email to php-notes+get-30648@lists.php.net to get a copy of this message
Or you could be lazy and do it all in one line... $file = 'stuff.tar.gz'; $extension = substr($str = substr($file, ($pos = strrpos($file, '/')) !== false ? ++$pos : 0), strpos($str, '.') + 1); -- http://www.php.net/manual/en/function.filetype.php http://master.php.net/manage/user-notes.php?action=edit+21486 http://master.php.net/manage/user-notes.php?action=delete+21486 http://master.php.net/manage/user-notes.php?action=reject+21486

« previous php.notes (#30648) next »