Business Days To/Fro with PHP

The below example will help you with finding or setting a date to and/or fro using business days only. I needed this for a project I was working on and thought I would share. [php] <?php function dateFromBusinessDays($days, $dateTime=null) { $dateTime = is_null($dateTime) ? time() : $dateTime; $_day = 0; …

PHP Snippets – The Name Says it All

I’ve been following a new website via Twitter. PHP Snippets (www.phpsnippets.info) posts frequent useful PHP code samples. PHP Snippets is maintained by Jean-Baptiste Jung, author of Cats Who Code and WPRecipes. PHP Snippets is a great place to find clean code samples to get you started on your project. I …