<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/php/tags/updating</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 22 May 2013 14:01:28 GMT</pubDate>
<item>
<title>(PHP) Auto updating copyright notice - Jeroen</title>
<link>http://snipplr.com/view/52454/auto-updating-copyright-notice/</link>
<description><![CDATA[ <p>__A lot of websites are victim of outdated copyright notices, 2008, 2009 even 2000.__

This function is designed to combat this annoyance, resulting in proper copyright notices. With **valid years**, and also valid **Typography**, separating the dates with an **En dash** and using **character entities**.   

Using this function in your footer will create an output string similar as:   
*****
2008–2011 ©  for $startYear = 2008    
*****
2011 ©  if the $startYear is equal(or bigger) compared to the current year, note that if an invalid date(higher) is passed as the argument the function will still return the current year   
*****
Our company 2011 ©  for $startYear = "Our company" **(not advised)**   
*****
2009–2011 © Our company for $startYear = 2009 and $txt = "Our company" **(advised)**</p> ]]></description>
<pubDate>Fri, 22 Apr 2011 05:51:30 GMT</pubDate>
<guid>http://snipplr.com/view/52454/auto-updating-copyright-notice/</guid>
</item>
</channel>
</rss>