snipt

Ctrl+h for KB shortcuts

PHP

Current Year in PHP

<?php echo date('Y'); ?>
https://snipt.net/embed/3f00d70e1b2346943cbc44c8184073c5/
/raw/3f00d70e1b2346943cbc44c8184073c5/
3f00d70e1b2346943cbc44c8184073c5
php
PHP
1
2019-07-20T06:29:12
True
False
False
/api/public/snipt/3898/
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><span class="cp">&lt;?php</span> <span class="k">echo</span> <span class="nb">date</span><span class="p">(</span><span class="s1">&#39;Y&#39;</span><span class="p">);</span> <span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
date, php