note 123693 added to language.basic-syntax.phptags

From: Date: Fri, 15 Mar 2019 01:16:54 +0000
Subject: note 123693 added to language.basic-syntax.phptags
Groups: php.notes 
Request: Send a blank email to php-notes+get-210374@lists.php.net to get a copy of this message
Omit closing tag ?> always whenever you can example: <!DOCTYPE html><head> <title><?php include'varia.php'; echo$title?></title> </head><body></body></html> varia.php <?php $title = 'Welcome'; ?> [new line] //other words: an extra 'Enter' is guilty --------------- and you get: Welcome - at the browser label source won't tell you what happened - there will be fine: <!DOCTYPE html><head> <title>Welcome</title> </head><body></body></html> Now imagine, what else can go wrong because of it? Everything, as Murphy said. And you will look for the answer why...? And where...? It's just simplest example. ---- Server IP: 92.48.119.85 Probable Submitter: 90.156.104.103 ---- Manual Page -- http://php.net/manual/en/language.basic-syntax.phptags.php Edit -- https://master.php.net/note/edit/123693 Del: integrated -- https://master.php.net/note/delete/123693/integrated Del: useless -- https://master.php.net/note/delete/123693/useless Del: bad code -- https://master.php.net/note/delete/123693/bad+code Del: spam -- https://master.php.net/note/delete/123693/spam Del: non-english -- https://master.php.net/note/delete/123693/non-english Del: in docs -- https://master.php.net/note/delete/123693/in+docs Del: other reasons-- https://master.php.net/note/delete/123693 Reject -- https://master.php.net/note/reject/123693 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#210374) next »