separating strings from extensions

From: Date: Sun, 17 Feb 2008 22:37:19 +0000
Subject: separating strings from extensions
Groups: php.general 
Request: Send a blank email to php-general+get-269449@lists.php.net to get a copy of this message
i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,".")); how can i get the text BEFORE the . (period) ? thanks in advance. -e

« previous php.general (#269449) next »