tmyonline Posted February 25, 2010 Share Posted February 25, 2010 Guys: I'm wondering if there is a PHP method that accepts a date as an argument and returns a boolean value as to whether that date falls on weekend ? Thanks. Quote Link to comment Share on other sites More sharing options...
schilly Posted February 25, 2010 Share Posted February 25, 2010 well if it's a unix timestamp, use date() to get the day of the week then just use a switch statement to check the day against the days of the week. return true or false accordingly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.