Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. if($results->tweet_date <= strtotime('-1 hours')) {
  2. //do api call
  3. } else {
  4. //call tweets from database
  5. }
  6.  
  7. if($results->tweet_date <= time() - 3600) {
  8. //do api call
  9. } else {
  10. //call tweets from database
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement