snipt

Ctrl+h for KB shortcuts

Text only

Show current year in php

<?php echo date("Y")?>
https://snipt.net/embed/766fe8a613da35ef37bf28312bb7021c/
/raw/766fe8a613da35ef37bf28312bb7021c/
766fe8a613da35ef37bf28312bb7021c
text
Text only
1
2019-08-14T07:37:47
True
False
False
Sep 13, 2012 at 05:58 AM
/api/public/snipt/47127/
show-current-year-in-php
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>&lt;?php echo date(&quot;Y&quot;)?&gt; </span></pre></div> </td></tr></table>
date, php, year