PHP PHP Basics Getting to Know PHP PHP Comments

The doc block end of a PHP comment shoud be /* with * last?

Quiz question on PHP comments for authors.

1 Answer

Ivan Penchev
Ivan Penchev
13,832 Points

Indeed the multi-line PHP comment can be used to comment out large blocks of code or writing multiple line comments. The multiple line PHP comment begins with " /* " and ends with " */ ".

/* This Echo statement will print out my message to the
the place in which I reside on.  In other words, the World. */
echo "Hello World!"; 
/* echo "My name is Humperdinkle!";
echo "No way! My name is Uber PHP Programmer!";

The quiz disagrees with this answer.