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
How to call php function from javascript using ajax?
What is the difference between php and javascript?
What is php default argument?
How to remove the new line character from the end of a text line in php?
In php, how to redirect from one page to another page?
When you want to show some part of a text displayed on an html page in red font color? What different possibilities are there to do this? What are the advantages/disadvantages of these methods?
What is different between software and app
What is the use of the function 'imagetypes()'?
How to convert a character to an ascii value?
What are different types of Print Functions available in PHP?
Tell me how to find current date and time?
How many open modes available when a file open in PHP?
How do you destroy a session?
Explain the casts allowed in PHP?
What is cookie and session in php?