Skip to content

Instantly share code, notes, and snippets.

@lianglee
Last active December 6, 2021 16:37
Show Gist options
  • Save lianglee/105082221b477dd77630f3bf46198de0 to your computer and use it in GitHub Desktop.
Save lianglee/105082221b477dd77630f3bf46198de0 to your computer and use it in GitHub Desktop.
fb
<?php
switch(date('i')){
case 0:
case 15:
case 30:
case 45:
$x = 0;
break;
case 5:
case 20:
case 35:
case 50:
$x = 1;
break;
case 10:
case 25:
case 40:
case 55:
$x = 2;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment