php - Can't add to time?

admin2025-06-05  2

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

What's the best way to add to time()?

For example: time() + 5 will return 5, not the current unix timestamp with 5 added to it. Any ideas? Thanks

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 6 years ago.

Improve this question

What's the best way to add to time()?

For example: time() + 5 will return 5, not the current unix timestamp with 5 added to it. Any ideas? Thanks

Share Improve this question asked Dec 16, 2018 at 3:52 SalSal 1535 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Oh you have to wrap in quotes.

(time() + 5)

Works. Sigh

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749095081a316320.html

最新回复(0)