php docs comments code example Example: how to create comments in php Answer: Use the Syntax "// text" (single line) and "/* text */" (multi-line)