Jump to content

reducing echo value


jacko_162

Recommended Posts

when i echo my results (months) i use;

 

$month

 

this displays the month in full how can i limit this to show;

 

"Dec" instead of "December" without changing my database :)

 

this is the full echo code im using;

 

       // make sure we have a valid product
       if($id != "" && $id != null)
          echo "<td width='120' height='115' background='img/calendars/blank_calendar.png'><a href='testresults.php'><div class='cal_text' align='center'><strong><img src='img/spacer.png' width='1' height='6'><br>
      $id<br>$month</strong></div></a>";

 

it displays the date as:

 

16

December

 

i want it to display;

 

16

Dec

 

many thanks :)

Link to comment
https://forums.phpfreaks.com/topic/195154-reducing-echo-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.