Wells-it.com - Web Hosting

Dumb questions about php

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

She has: 113 posts

Joined: Oct 2000

How do you maki php comments in the code?

Are they: /* */
or are they: //
I've seen both in php code, but am clueless.
Yes i need a good easy beginners php site tutorial.

"Nothing worth having comes without some kind of fight- 'Got to kick at the darkness 'til it bleeds daylight." - Bruce Cockburn

Suzanne's picture

She has: 5,512 posts

Joined: Feb 2000

You can use /**/, // or # (perl style comments).

I use /**/ for big blocks of code, and // for single lines. I don't use # at all because it annoys me, but it's perfectly valid. Smiling

druagord's picture

He has: 335 posts

Joined: May 2003

for good doc go to php.net