PHP Copyright Date Code

Here is a snippet of code that I am using for the copy­right date on my website. I had found a snippet of code that similar and simpler online and cannot find it again. I am new to PHP coding and needs some help with this, I want to make my snippet of code more concise and simpler. Leave a comment if you can help.

Thanks,

<?php $start_year = 2008;
if ( $start_year == date(Y) ) {
echo date(Y);
} else {
echo “$start_year — “.date(“Y”);
} ?>

Chimpanzee

ch imˌpanˈzē; –pənˈzē; -ˈpanzē
noun
a great ape with large ears, mainly black coloration, and lighter skin on the face, native to the forests of western and central Africa. Chimpanzees show advanced behavior such as the making and using of tools.

Leave A Reply

Comments

No comments yet, be the first to add one!