著作権表示の年を自動取得する

UTF-8で書いているなら、Copyright記号【© 】は実体参照【© 】にしなくて大丈夫。(そもそも著作権表示は不要だけど要望多し…)

PHPで著作権表示の年を自動取得する

© 2023 All Rights Reserved.

<div>© <?php echo date('Y'); ?> All Rights Reserved.</div>

JSで著作権表示の年を自動取得する

© All Rights Reserved.

<div>© 
		<script>
			myDate = new Date() ;myYear = myDate.getFullYear ();document.write(myYear);
		</script> 
	All Rights Reserved.
</div>

TOP