checking image extensions
| From: | Alvin Tan | 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