This article mainly introduces how php dynamically generates all rights reserved information. The instance analyzes the php time and string operation skills and has some reference value. For more information, see
This article mainly introduces how php dynamically generates all rights reserved information. The instance analyzes the php time and string operation skills and has some reference value. For more information, see
This example describes how php dynamically generates all copyright information. Share it with you for your reference. The specific implementation method is as follows:
Function copyright ($ start, $ owner) {$ date = date ('y'); echo"©Copyright "; if ($ start <$ date) {echo" {$ start}-";}echo" {$ date }{$ owner }";}
Demo:
If the current year is 2013, use
Copyright ('20140901', 'jb51. net ');
Output:
©Copyright 2012-2015 jb51.net
I hope this article will help you with php programming.
,