Assignment 3 Part 7
Constants in PHP are similiar to variables but the difference is that their values can't change once it is defined
- Constants are used for storing values that should not be changed
- Constants are defined using the define function
- Variables can have their values modified unlike constants
Examples of constants:
Value of PI is: 3.14159265359
All Cakes must have Eggs and recipe cannot be changed
To summarize the main point is that constant CANNOT change value and variables CAN change their values