constant.php

Example: Constant Varaibles

3.14

Lauren Rodriguez

Explanation:

Constants are declared with define('varaible name', value). The $ sign does not need to be used when calling constant variables. Constant variables can not be changed once they have been declared. In the examples I have created

define('PI', 3.14); and

define('MyName',"Lauren Rodriguez");

to demonstrate how constant variables are created and printed.