note 116094 added to language.basic-syntax.phptags

From: Date: Sat, 08 Nov 2014 21:06:23 +0000
Subject: note 116094 added to language.basic-syntax.phptags
Groups: php.notes 
Request: Send a blank email to php-notes+get-200850@lists.php.net to get a copy of this message
A few related notes, partly covered elsewhere in the manual: → Since PHP 5.4 the inline echo <?= ?> short tags are always enabled regardless of the short_open_tag (php.ini) setting. → PHP tags are infrequently also referred to as open/close "tokens" (as per the tokenizers T_OPEN_TAG / _ECHO, and T_CLOSE_TAG naming). → The historic ASP-style <% %> and even more rarely used <script language=PHP></script> tags are to be repealed in PHP7. http://wiki.php.net/rfc/remove_alternative_php_tags There also exists a small tool called "phptags tidier" for consistently rewriting PHP short/long tags. It's suitable to normalize include and template scripts, e.g. employ the always-enabled long <?php ?> tags, and/or relieve whitespace padding before/after PHP tags: phptags --long --whitespace --warn *.php Instead of reliably fixing the common whitespace/BOM issues around tags, it can also just remove all ?> close tags with --unclose --tokenizer as advised afore. ---- Server IP: 72.52.91.14 Probable Submitter: 178.24.225.110 ---- Manual Page -- http://php.net/manual/en/language.basic-syntax.phptags.php Edit -- https://master.php.net/note/edit/116094 Del: integrated -- https://master.php.net/note/delete/116094/integrated Del: useless -- https://master.php.net/note/delete/116094/useless Del: bad code -- https://master.php.net/note/delete/116094/bad+code Del: spam -- https://master.php.net/note/delete/116094/spam Del: non-english -- https://master.php.net/note/delete/116094/non-english Del: in docs -- https://master.php.net/note/delete/116094/in+docs Del: other reasons-- https://master.php.net/note/delete/116094 Reject -- https://master.php.net/note/reject/116094 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200850) next »