Jump to content

dynamic copyright


garevn

Recommended Posts

I am using this code and the result is "© Copyright 2013 - 2013". I want if possible if the current year is the same with the copyright year to display only one. for example the display will be "© Copyright 2013".

<?php 
 $time = time () ; 
 $year= date("Y",$time); 
 echo "© Copyright 2013 - " . $year;
 ?>

 

Link to comment
https://forums.phpfreaks.com/topic/275799-dynamic-copyright/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.