Re: basename()

From: Date: Tue, 21 Aug 2001 08:43:40 +0000
Subject: Re: basename()
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-63651@lists.php.net to get a copy of this message
Oh yes, I dont like warnings. Thanks for pointing that out Renze Munnik wrote:
On Mon, Aug 20, 2001 at 03:42:34PM -0400, Gerard Samuel wrote:
$file = basename ($path); $file = $file.php3;
You might want to consider using, $file = basename ($path); $file = "$file.php3"; // <-- ! instead, if you don't like warnings. $file = $file.php3 isn't the way to do it! You _could_ use $file = $file.".php3"; though.


« previous php.general (#63651) next »