note 125742 deleted from language.basic-syntax.phptags by crell

From: Date: Mon, 04 Apr 2022 16:53:15 +0000
Subject: note 125742 deleted from language.basic-syntax.phptags by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-218111@lists.php.net to get a copy of this message
Note Submitter: anisgazig at gmail dot com ---- Everything inside a pair of opening and closing tag is interpreted by php parser. Php introduced three types of opening and closing tag. 1.Standard tags <?php ?> 2.Short echo tag <?= ?> here, <?= is equivalent meaning of "<?php echo" 3.Short tag <? ?> Standard tag and short echo tag are alwayes available. But short tag can be disabled either via the short_open_tag php.ini configuration file directive, or are disabled by default if PHP is built with the --disable-short-tags configuration. If a file contains only PHP code, it is preferable to omit the PHP closing tag at the end of the file. This prevents accidental whitespace or new lines being added after the PHP closing tag

« previous php.notes (#218111) next »