how to get actual date in DD-MMM-YY format in PHP? [closed]

try the date function

date('d-M-y');

this will return the date in this format: 15-Dec-15 (today).

Browse More Popular Posts

Leave a Comment