note 76428 added to language.basic-syntax.instruction-separation

From: Date: Sat, 14 Jul 2007 22:11:10 +0000
Subject: note 76428 added to language.basic-syntax.instruction-separation
Groups: php.notes 
Request: Send a blank email to php-notes+get-128529@lists.php.net to get a copy of this message
Some points in the above document are not clear to me. I have the following suggestions for helping out syntactically challenged newbie users such as myself: You state: "The closing tag for the block will include the immediately trailing newline if one is present." It is not clear to me what this means. Does this means that the PHP parser considers the trailing newline if present to be part of the closing tag and therefore will not output the newline character, therefore one would need to include the number of desired newline characters, plus one, after the closing tag? If so, explicitly stating like this the implication of the inclusion would probably help out newbie readers. Also, for better clarity, please use examples with multiple statements, such as: <?php echo 'This is a test'; echo 'This is a test'; ?> <?php echo 'This is a test'; echo 'This is a test' ?> Also, for better clarity, please include examples for both possible permutations of the special end-of-file rule: (first example file) <?php echo 'This is a test'; echo 'We omitted the last closing tag'; (end of first file) (second example file) <?php echo 'This is a test'; echo 'We omitted the last closing tag' (end of second file) The manual page as written leads me to believe that all of these above examples are allowable. If any is syntactically incorrect, please explicitly state this. Thanks! (oh dear. In previewing this I see that my inclusion of two end of file examples in my note, each without a closing tag, has messed up your text formatter's parsing of this note. Do I need to file a bug report? Heh. :) ---- Server IP: 69.147.83.197 Probable Submitter: 71.201.253.107 ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php Edit -- https://master.php.net/note/edit/76428 Del: integrated -- https://master.php.net/note/delete/76428/integrated Del: useless -- https://master.php.net/note/delete/76428/useless Del: bad code -- https://master.php.net/note/delete/76428/bad+code Del: spam -- https://master.php.net/note/delete/76428/spam Del: non-english -- https://master.php.net/note/delete/76428/non-english Del: in docs -- https://master.php.net/note/delete/76428/in+docs Del: other reasons-- https://master.php.net/note/delete/76428 Reject -- https://master.php.net/note/reject/76428 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128529) next »