Home >Backend Development >PHP Tutorial >How to dynamically generate copyright information in php_PHP tutorial
This article mainly introduces the method of dynamically generating copyright information in php, and analyzes the operation skills of php time and string with examples. It has certain reference value, friends in need can refer to it
The example in this article describes the method of dynamically generating copyright information in PHP. Share it with everyone for your reference. The specific implementation method is as follows:
?
3 4 5
6
7
|
function copyright($start, $owner) { $date = date('Y');
echo "© Copyright ";
if ( $start < $date ) {
echo "{$date} {$owner}"; }
|