separating a file extention
| From: | C.F. Scheidecker Antunes | Date: | Sun, 18 Jul 2004 23:22:42 +0000 |
| Subject: | separating a file extention | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-190945@lists.php.net to get a copy of this message | ||
Hello all,
Is there any easy and efficient way to separate files extention that vary in size?
Some have 3 chars after the dot, some 2, some 1, some 4, some none.
Examples:
test.zip
test.gz
test.z
test.jpeg
test.jpg
test (no extention)
an have the result returned on a $fext field?
I think this can also be done with email domains, returning the string right to the at sign.
Thanks again.