Ternary operators are probably the most confusing code to look at but at the same time probably the most underused style of coding for new developers. Ternary operators doesn’t give any additional functionality to PHP programming aside from simplifying and minimizing the number of characters you have you type in order to achieve the desired…
Category Archives: php
What the heck is a hook / action / filter?
When you are first getting in to programming everything seems pretty logical. You decide what you want to achieve, you google it, and for the most part you will find a basic example that you can look at and understand what’s going on and why the code is written the way it is. Then you…

Yoda logic
Not that confusing, it is. Back end web programming is all about logic. You create a bunch of conditions in which you want your code to run and then you run it. For instance, you would say “If this post has the category ‘featured’ checked off, display it. If not, do not display it.”. That…