Archive for November, 2008

Ever been faced with a problem where you need data off another site but they have no good API to extract that data? Recently I was presented with a problem where I needed to get grab dates off a band’s Myspace page and use that data offsite. I’d rather fall on a pointed stick than [...]

Ryan

PHP – Ternary Operator

November 2, 2008 by Ryan in Code, PHP, Tutorial


PHP’s Ternary operator is fast becoming one of my favorite functions to use due to it’s ease to write and how it can clean up the code making it much easier to understand. If you don’t know what a ternary operator is, in short, it is a shortened version of an If/Else statement. Let’s take [...]