Re: RE: Re: [PHP] pathinfo function

2011-07-27 Thread Tim Streater
On 27 Jul 2011 at 11:09, Mike Ford wrote: >> -Original Message- >> From: Tim Streater [mailto:t...@clothears.org.uk] >> Seems to me that's the case. However the doc is ambiguous, >> especially as I *asked* for that key to be returned. IMO it should >> exist and be empty. Not existing is

RE: Re: [PHP] pathinfo function

2011-07-27 Thread Ford, Mike
> -Original Message- > From: Tim Streater [mailto:t...@clothears.org.uk] > Sent: 27 July 2011 09:57 > > On 26 Jul 2011 at 23:55, Micky Hulse wrote: > > > On Tue, Jul 26, 2011 at 3:47 PM, Tim Streater > wrote: > >> that I will get an error if I try to reference $info["extension"] > ?? >

Re: Re: [PHP] pathinfo function

2011-07-27 Thread Tim Streater
On 26 Jul 2011 at 23:55, Micky Hulse wrote: > On Tue, Jul 26, 2011 at 3:47 PM, Tim Streater wrote: >> that I will get an error if I try to reference $info["extension"] ?? > > From what I can tell via reading the docs: > > "The following associative array elements are returned: dirname, > basena

Re: [PHP] pathinfo function

2011-07-26 Thread Micky Hulse
On Tue, Jul 26, 2011 at 3:47 PM, Tim Streater wrote: > that I will get an error if I try to reference $info["extension"] ?? >From what I can tell via reading the docs: "The following associative array elements are returned: dirname, basename, extension (if any), and filename."

[PHP] pathinfo function

2011-07-26 Thread Tim Streater
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php