note 24842 deleted from function.stristr by danbrown

From: Date: Fri, 28 Nov 2008 20:09:16 +0000
Subject: note 24842 deleted from function.stristr by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147184@lists.php.net to get a copy of this message
Note Submitter: moenm@hotmail_com ---- A slightly more efficient way of getting a files extension. There is no reason to use strrev(). function getext($f) { $ext = substr($f, strrpos($f,".") + 1); return $ext; }

« previous php.notes (#147184) next »