Help me make the right condition.



  • I want to do this:

    if (пятница) {//условие};
    

    Meaning how to define Friday code



  • For example:

    if (5 == date('w')) {
        drinkVodka();
    }
    

    See also http://php.net/manual/ru/function.date.php ♪ http://php.net/manual/ru/function.strftime.php ♪ http://php.net/manual/ru/function.getdate.php


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2