- date: documentation ( source)
- strtotime: documentation ( source)
<?php
echo date('d M, Y', strtotime('today'))."\n";
if(date('j', strtotime('today')) === '1') echo date('jS', strtotime('today'));
elseif(date('j', strtotime('today')) === '2') echo date('jS', strtotime('today'));
elseif(date('j', strtotime('today')) === '3') echo date('jS', strtotime('today'));