Substr PHP Function with calendar?
-
Hi,
Can anyone help me use the substr PHP function with the ‘the_time’ function.
<div class="calendar"> <? // $month = substr(the_time('S'(0,3))); ?> <p class="month"><?php echo $month; ?> <p class="date"><?php the_time('F j') ?> </div>
I had hoped the above would display the first three letters of the month, but seem to be getting errors ??
Please help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Substr PHP Function with calendar?’ is closed to new replies.