From 60c75aa34c23409dcba19b715dc8459ec8d1be76 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 13 Jun 2003 11:05:30 +0000 Subject: [PATCH] - More layout things git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@131310 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/basic-syntax.xml | 52 ++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 22 deletions(-) diff --git a/language/basic-syntax.xml b/language/basic-syntax.xml index 5a72baebbb..41ed06f1ec 100644 --- a/language/basic-syntax.xml +++ b/language/basic-syntax.xml @@ -1,5 +1,5 @@ - + Basic syntax @@ -124,15 +124,17 @@ - - - Using short tags should be avoided when developing applications - or libraries that are meant for redistribution, or deployment on - PHP servers which are not under your control, because short tags - may not be supported on the target server. For portable, - redistributable code, be sure not to use short tags. - - + + + + Using short tags should be avoided when developing applications + or libraries that are meant for redistribution, or deployment on + PHP servers which are not under your control, because short tags + may not be supported on the target server. For portable, + redistributable code, be sure not to use short tags. + + + The closing tag for the block will include the immediately @@ -141,7 +143,7 @@ semicolon terminating the last line of a PHP block. - + PHP allows you to use structures like this: Advanced escaping @@ -175,7 +177,8 @@ if ($expression) { Instructions are separated the same as in C or Perl - terminate - each statement with a semicolon. + each statement with a semicolon. + The closing tag (?>) also implies the end of the statement, so @@ -221,22 +224,25 @@ if ($expression) { the line or the current block of PHP code, whichever comes first. - - + + + This is an example.

The header above will say 'This is an example'. ]]> - - + + + You should be careful not to nest 'C' style comments, which can happen when commenting out large blocks. - - + + + ]]> - - + + + The one-line comment styles actually only comment to the end of the line or the current block of PHP code, whichever comes first. - This means that HTML code after // ?> WILL be printed: ?> skips out of - the PHP mode and returns to HTML mode, and // cannot influence that. + This means that HTML code after // ?> WILL be printed: + ?> skips out of the PHP mode and returns to HTML mode, and + // cannot influence that.