Re: pathinfo function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/26/2011 05:47 PM, Tim Streater wrote:
> Is it to be expected that, if a file has no extension, and I do this:
> 
>    $info = pathinfo ($myfile);
> 
> that I will get an error if I try to reference $info["extension"] ??
> 
> --
> Cheers  --  Tim

Just like any other array you'll get a notice:

Notice: Undefined index: extension

-- 
Thanks!
-Shawn
http://www.spidean.com

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux