What does this sentence mean? -Php Tutorial

Source: Internet
Author: User
What does this sentence mean?
strtotime("+$day day $second second +$date")

The complete code is as follows:
 ';?>


Reply to discussion (solution)

You just need to run it.

Make $ day = $ second = 1
$ Date = '2017-05-09 11:00:00'

Then strtotime ("+ $ day + $ second $ date ")
Is strtotime ("+ 1 day 1 second 11:00:00 ")
Returns a unix timestamp that is one day and one second later than 11:00:00.

strtotime("+$day day $second second +$date")

It refers to the timestamp after $ date $ day $ second seconds.

Http://www.w3school.com.cn/php/func_date_strtotime.asp

Should it be written like this?

strtotime("+$day day $second second",$date)

Should it be written like this?

strtotime("+$day day $second second",$date)
Indicates an error occurred.

Make $ day = $ second = 1
$ Date = '2017-05-09 11:00:00'

Then strtotime ("+ $ day + $ second $ date ")
Is strtotime ("+ 1 day 1 second 11:00:00 ")
Returns a unix timestamp that is later than 11:00:00 on.

strtotime("+$day day $second second +$date")

It refers to the timestamp after $ date $ day $ second seconds.

Http://www.w3school.com.cn/php/func_date_strtotime.asp thanks for answering

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.