What’s going on with strtotime here?
$today = date('m.d.y H:i', time());
echo strtotime($today);
It does not output anything… What’s going on?
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.
strtotimecan only parse certain formats, not any random assortment of numbers and letters. “m.d.y H:i” is not a formatstrtotimecan parse. You’ll need to parse that manually using, for example,strptime.