In PHP , i’ve used the following code :
echo strtotime("today")."<br>";
echo strtotime("06/08/2011")."<br>";
I’m getting two different outputs :O
Why is that ?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You get different outputs because the second one is not today, as you think. The second date is read actually as 08 June 2011.
If you write this code:
You can see what I’m saying.
The second line should be: