Ana Sayfa / PHP / PHP Comments

PHP Comments

Single Line Comments

The single line comment begins with “//” or “#”. When encountered, all text to the right will be ignored by the PHP interpreter.

// This is a comment

# This is also a comment

echo "Hello World!"; // This is also a comment, beginning where we see "//"

Multi Line Comments

The multi-line comment can be used to comment out large blocks of code. It begins with /* and ends with */

/* This is a multi-line comment.
 It spans multiple lines.
 This is still part of the comment.
*/

Bunada Göz Atın

PHP Variable Scope

Variable scope refers to the regions of code where a variable may be accessed. This …

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir