Define String

$txt = "Hello World!";

Define Integer/Float

$number = 15;
$float = 3.14;


// This is how you comment

# This is also how you comment

This is a multi-
line comment

Constants are similar to variables, except once they are defined they cannot be undefined or changed

define("first_constant", "This is my first constant");
echo $first_constant;

Leave a Reply

Your email address will not be published. Required fields are marked *