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 <m...@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 > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php