15.04.2018 Views

programming-for-dummies

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

498<br />

Creating Comments<br />

?><br />

<br />

<br />

The tags define the beginning and ending of a PHP program.<br />

PHP programs (scripts) are usually stored in a file that ends with the .php<br />

file extension.<br />

Creating Comments<br />

To write a comment in PHP, you have three choices: //, #, or /* and */ symbols.<br />

Both the double slash (//) and the number (#) characters are used to<br />

create comments on a single line, such as<br />

<br />

<br />

// This is the beginning of the PHP program.<br />

<br />

# This is the end of the PHP program<br />

<br />

<br />

If you want to write a comment over multiple lines, use the /* and the */<br />

characters, such as<br />

<br />

<br />

/* This is the beginning of the PHP program.<br />

If a comment extends over multiple lines,<br />

It’s easier to use these types of comment<br />

symbols instead. */<br />

<br />

<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!