<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Snipplr</title>
    <description>Recent snippets posted on Snipplr.com</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Wed, 10 Jun 2026 04:31:42 +0000</lastBuildDate>
    <item>
      <title>(PHP) Auto updating copyright notice - Jeroen</title>
      <link>https://snipplr.com/view/52454/auto-updating-copyright-notice</link>
      <description>&lt;p&gt;__A lot of websites are victim of outdated copyright notices, 2008, 2009 even 2000.__&#13;
&#13;
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**.   &#13;
&#13;
Using this function in your footer will create an output string similar as:   &#13;
*****&#13;
&lt;code&gt;2008â€“2011 Â© &lt;/code&gt; for $startYear = 2008    &#13;
*****&#13;
&lt;code&gt;2011 Â© &lt;/code&gt; 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   &#13;
*****&#13;
&lt;code&gt;Our company 2011 Â© &lt;/code&gt; for $startYear = "Our company" **(not advised)**   &#13;
*****&#13;
&lt;code&gt;2009â€“2011 Â© Our company&lt;/code&gt; for $startYear = 2009 and $txt = "Our company" **(advised)**&lt;/p&gt;</description>
      <pubDate>Fri, 22 Apr 2011 05:51:30 UTC</pubDate>
      <guid>https://snipplr.com/view/52454/auto-updating-copyright-notice</guid>
    </item>
  </channel>
</rss>
