|
PHP can be embedded into a regular HTML document. For example, we should already know that the following is an example of how PHP is embedded: <html>
<head>
<title>My first PHP Page</title>
</head>
<body>
This is normal HTML code
<?php
// php code goes here
?>
Back into normal HTML
</body>
</html> Further, we also learned how we could quickly output variables from PHP code without all of the hassle of an echo statement by doing the following:
<?=$variable?> Today, we will extend our knowledge of embedded PHP by discussing how PHP can be used to control the flow of a web page through conditionals or repetition-control structures.
|