mannieschumpert
4/9/2013 - 11:28 AM

A simple PHP function to print copyright date

A simple PHP function to print copyright date

function copyright($start, $owner) {
  	$date = date('Y');
		echo "© Copyright ";
		if ( $start < $date ) {
			echo "{$start} - ";
		}
		echo "{$date} {$owner}";
	}
  
 /*
  * Example: if the current year is 2013, copyright('2012', 'My Company'); will print 
  * © Copyright 2012 - 2013 My Company
  *
  */