checking image extensions

From: Date: Sat, 17 Feb 2001 16:22:54 +0000
Subject: checking image extensions
Groups: php.general 
Request: Send a blank email to php-general+get-40352@lists.php.net to get a copy of this message
Hi, Newbie question here. I'm trying to write a function to check an image extension, part of the code is: if (substr($imgName, -4) != ".jpg") my question is what's the syntax for adding (or) ".gif" to this? TIA @lvin

« previous php.general (#40352) next »