RE: [PHP] Re: Editing files by line

From: Date: Tue, 16 Jul 2002 22:38:04 +0000
Subject: RE: [PHP] Re: Editing files by line
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107977@lists.php.net to get a copy of this message
-----Original Message----- From: Analysis & Solutions Sent: Tuesday, July 16, 2002 4:40 PM To: PHP List Subject: Re: [PHP] Re: Editing files by line On Tue, Jul 16, 2002 at 04:25:25PM -0400, Onaje Johnston wrote: >> >> if ($insert && $linenumber) { >But, if $linenumber is 0, this process won't happen. And, that was the >complaint you mentioned up front. > >So, you should do an "isset($linenumber)" instead. >--Dan Thanks. It works using "if ($insert && isset($linenumber)) {". So because the value of linenumber is 0 on the first line, the if statement was evaluating to false and therefore the update wouldn't occur, correct?

« previous php.general (#107977) next »