Skip to content

PHP Comments

PHP supports ‘C’, ‘C++’ and Unix shell style (Perl style) comments.

Example


<?php
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";
echo "One Final Test";
# This is a one-line shell-style comment ?>

<< Back

PHP Conditionals & Loops

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: