Re: Adding new closing tag =?> for keeping trailing newline

From: Date: Sun, 05 Jun 2022 22:40:45 +0000
Subject: Re: Adding new closing tag =?> for keeping trailing newline
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-117857@lists.php.net to get a copy of this message
Hello! > <?php echo 1 =?> It should behave exactly the same as the existing closing tag, except that it does not erase the trailing newline character. Thanks! -- Shinji Igarashi 2022年6月6日(月) 6:54 Mark Baker <mark@demon-angel.eu>: > > On 05/06/2022 10:23, shinji igarashi wrote: > > I'd like to propose adding a new closing tag =?> > > to the language. > > > > PHP currently removes the newline character immediately following > > the closing tag ?>. > > So we would have 4 possible combinations that developers could apply in > their code, two existing open/close settings > > <?php echo 1 ?> > > <?= 1 ?> > > and two new combinations, the first you explain > > <?= 1 =?> > > but also > > <?php echo 1 =?> > > What should PHP do when it encounters this combination of > opening/closing tags? > > > -- > Mark Baker > > _________ > |. \ \-3 > |_J_/ PHP | > || | __ | > || |m| |m| > > I LOVE PHP > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: https://www.php.net/unsub.php >

« previous php.internals (#117857) next »