The code and thoughts of Jesse Schoberg Co-Founder of DropInBlog
PHP Shorthand Conditional Statement
Here’s another quick hit from my php snippets. You can see a review of a lot of ways to do this on David Walsh’s post on the subject. However, I wanted to write it as short as possible to be used within pages. I use this a lot to add css classes into tags.
PHP Conditional Statement – In Between Dates
I’m always using little php snippets in tons of projects. Here’s one I needed today that is very useful. If you want a specific item to show only between a group of dates you can use this. No big function, just slap in your dates and go!