PHP Exercise and solutions: Displaying copyright information format – codzhub

Display copyright information format

Sample Solution:

Code:

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Copyright Info</title>
</head>
<body>
<p>© <?php echo date('Y'); ?> Demo </p>
</body>
</html>

Sample Output:

© 2017 demo

Leave a Reply

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