how many ways we get current date in php
Answers were Sorted based on User's Feedback
Answer / swapna
$date_time = date('Y-m-d H:i:s'); use this one you can get
current date.
| Is This Answer Correct ? | 88 Yes | 28 No |
Answer / mahesh
$date = getdate()
Here $date prints as an Array.with current date and Time
| Is This Answer Correct ? | 24 Yes | 25 No |
Answer / tasimkhan
$date = date('d-M-Y H:i:s', strtotime(time(0))
| Is This Answer Correct ? | 4 Yes | 7 No |
What is session in php why it is use?
How to concatenate two strings together in php?
Explain briefly about a search-friendly site looks like?
What is lamp in php?
What are the 5 types of data?
What's the difference between __sleep and __wakeup?
How can you retrieve a cookie value?
Why php 7 is faster?
Are parent constructors called implicitly inside a class constructor?
hi! i am tushar. i am trying to insert digital signature in a pdf file using PHP. i create a digital signature jpg image using imagecreatefromjpeg() function, but whenever i trying to insert it into my pdf file it shown this error. "FPDF error: Not a JPEG file: signature.jpg". could some one help me? how can i insert a digital signature in a pdf file using PHP?
when we use ob_start() function in php then the header() and session_start() does not gives the error like header already sent,please explain in brief
What does nan stand for computer science?