how to extract month from given date by using string
functions?

Answer Posted / pavunkumar

use this code.


[code]
?php
print date ( 'm',mktime ( 0,0,0,02,26,2010 ) ) ;
?>
~
[/code]

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does $_env means?

531


What is the difference between array_merge() and array_merge_recursive() in php?

524


Can we run php in apache tomcat?

497


What is php oop?

489


What is mysql in php?

500






How to convert numbers to strings in php?

499


What is string in php?

536


What is strcmp?

499


Does php need apache?

480


How to concatenate two strings together in php?

543


What advance thing in php7?

504


Explain the changes in php versions?

520


What is uniqid php?

561


How many different types of messages available in php?

525


Tell me what should we do to be able to export data into an excel file?

497