How to output the previous weekday?
If user inputs "030507" (Monday, March 5, 2007), I want to output "030207" (Friday, March 2, 2007), skipping back past Sunday and Saturday.
But if the user inputs "030607" (Tuesday, March 6, 2007), I want to output "030507" (Monday, March 5, 2007).
Originally, this post was published on Monitis Blog, you can check it
In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…