On Tuesday 16 September 2003 21:24, Jon Haworth wrote:

> At this point $p is an array rather than a variable, so you'll need to get
> the last element of $p.Try something like this:
>
> $p = explode('.', $pfile);
> $extension = $p[sizeof($p)-1];

Better still, use array_pop().

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Your car horn will always get stuck when your're behind a group of "Hell's 
Angels"
                -- Murphy's Driving Laws n�19
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to