Re: [PHP] separating a file extention

2004-07-18 Thread Justin French
On 19/07/2004, at 9:22 AM, C.F. Scheidecker Antunes wrote: 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) --- Justin

Re: [PHP] separating a file extention

2004-07-18 Thread Jason Wong
On Monday 19 July 2004 07:22, C.F. Scheidecker Antunes wrote: > Is there any easy and efficient way to separate files extention that > vary in size? Please RTFM. A quick browse through the String functions would have broguht your attention to explode(). But the easiest solution is pathinfo().

[PHP] separating a file extention

2004-07-18 Thread C.F. Scheidecker Antunes
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 ca