Dumb questions about php

She has: 120 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,507 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

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.