do i need to include something to use time_since() function in php 5 or is has it been replace?
Share
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.
It doesn’t look like that function ever existed in PHP. Do you mean
time()?However, you can get the time since an event like so…
You can also use the object
DateTime.Note that
diff()method wasn’t introduced until PHP 5.3.