[go: up one dir, main page]

0% found this document useful (0 votes)
71 views1 page

Web App Lesson 5 Code - Constants

The document is an HTML file containing a PHP script that defines three constants: RATE, PERIOD, and PRINCIPAL. It calculates and displays the product of these constants, which results in the value of 10000. Additionally, it notes that attempting to modify a constant will generate an error.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views1 page

Web App Lesson 5 Code - Constants

The document is an HTML file containing a PHP script that defines three constants: RATE, PERIOD, and PRINCIPAL. It calculates and displays the product of these constants, which results in the value of 10000. Additionally, it notes that attempting to modify a constant will generate an error.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

<!

DOCTYPE html>
<head>
<title> Constant </title>
</head>

<body>
<?php

define("RATE", 5);
define("PERIOD", 1);
define("PRINCIPAL", 2000);

echo PRINCIPAL * PERIOD * RATE;


echo "<br/>";

//echo RATE += 5 will generate an error


?>

</body>
</html>

You might also like