Re: array limits in echo function?

From: Date: Tue, 09 Apr 2002 04:34:42 +0000
Subject: Re: array limits in echo function?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-92168@lists.php.net to get a copy of this message
You need a comma between $fname and $lname eg: <?php echo $fname, $lname; ?> "Lmlweb" <junkit@lmlweb.com> wrote in message news:20020409042619.40674.qmail@pb1.pair.com... > I'm just curious: > > if I use within my html codes: > > <?php echo $fname $lname; ?>, I get an error message telling me: > > Parse error: parse error, expecting ','' or > ';'' > > However, if I take out one of the variables so that it reads <?php echo > $lname; ?> it works. > > Has it always been this way? I never noticed before, as I'm quite the > newbie. If so, how do I best combine the two (other than having to create > two separate <?php..?> codes in the HTML)? > > Thanks! > >

« previous php.general (#92168) next »