note 126534 added to language.basic-syntax.phptags
| From: | anisgazig at gmail dot com | Date: | Sun, 24 Oct 2021 10:28:11 +0000 |
| Subject: | note 126534 added to language.basic-syntax.phptags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217108@lists.php.net to get a copy of this message | ||
There is no defference between normal(<?php ?>) and short echo tag() but without uses of
comments.
example:
<h1>Normal tag with c++ style oneline comment: <?php //"Normal tag"; ?>
breaks php mode and return html mode </h1>
<h1>html code after (normal tag)<?php // and commnet then (closing tag) ?> breaks php
mode and return html mode</h1>
but in short echo tag
<h1>html code after (short echo tag)<?php // and commnet then (closing tag) ?> breaks
php mode and does not return html mode</h1>
Same rules are applied within # and /**/ style comments.
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 103.120.33.26)
----
Manual Page -- https://php.net/manual/en/language.basic-syntax.phptags.php
Edit -- https://main.php.net/note/edit/126534
Del: integrated -- https://main.php.net/note/delete/126534/integrated
Del: useless -- https://main.php.net/note/delete/126534/useless
Del: bad code -- https://main.php.net/note/delete/126534/bad+code
Del: spam -- https://main.php.net/note/delete/126534/spam
Del: non-english -- https://main.php.net/note/delete/126534/non-english
Del: in docs -- https://main.php.net/note/delete/126534/in+docs
Del: other reasons-- https://main.php.net/note/delete/126534
Reject -- https://main.php.net/note/reject/126534
Search -- https://main.php.net/manage/user-notes.php