Re: pathinfo function

From: Date: Wed, 27 Jul 2011 00:50:40 +0000
Subject: Re: pathinfo function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-314212@lists.php.net to get a copy of this message
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

« previous php.general (#314212) next »