PHP

Code Optimization: Equal vs. Identical Operators

One of my favorite optimization techniques is using the Identical operator. Why? Because it’s such an easy replacement for the Equality operator and it works much faster. Wait, now you might be wondering “Equality Operator” ? … “Identical Operator” ? Aren’t those the same thing? Well, no. Let’s take a look. PHP has lots of …

Code Optimization: Equal vs. Identical Operators Read More »

Creating Virtual Pages in WordPress

From time to time, I have the need to create the contents for a virtual page — that is, a page that is not stored in the database. This sort of thing is easy using a framework like CodeIgniter, but WordPress’s thing is displaying content from your database and not virtual content that is created …

Creating Virtual Pages in WordPress Read More »