Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

language.basic syntax.comments function syntax tag tutorial 2013 Donate at flattr Flattr this

Alert! Connect with 10,000 Chating Online. Join Now

Php language.basic syntax.comments () function

Write your php code

<?php ?>

Php Result

Your code below


PHP supports 'C', 'C++' and Unix shell-style (Perl style) comments. For example:

echo 'This is a test'; // This is a one-line c++ style comment
    /* This is a multi line comment
       yet another line of comment */
echo 'This is yet another test';
'One Final Test'; # This is a shell-style comment

The "one-line" comment styles 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. If asp_tags configuration directive is enabled, it behaves the same with // %>. However, </script> tag doesn't escape PHP mode in one-line comment.

<h1>This is an <?php # echo 'simple';?> example.</h1>
<p>The header above will say 'This is an example'.</p>

'C' style comments end by the first encountered */. You should be careful not to nest 'C' style comments, which can happen when commenting out large blocks.

    echo 'This is a test'; /* This comment will cause a problem */

Php language.basic syntax.comments Function syntax tag

language.basic syntax.comments php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online

Php language.basic syntax.comments syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.

Function index







Date & Time

Directory function




Form data handling

Mathematics operators


Php Mysql

Network Functions


php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online