Vote Up 2 Vote Down

php display current month name fully

I need to display current month name. So far I tried the following code:

<?php
echo date("M");
?>


I prints as:
Apr

But I need April

How to do it ?
flag

Answers


Vote Up 0 Vote Down
You can achieve that using the same date function. But you need to alter your code as follows

echo date("F")
flag | link |

Your Answer

Login before answering

Login with facebook