• PHP Basics: Control Structures

    PHP control structures are something you will encounter frequently when working with WordPress. In this article I give a short overview of the available controls followed by common WP examples. Control Structures Any PHP script is built out of a series of statements. A statement can be an assignment, a function call, a loop, a […]

  • PHP Basics: Arrays

    Arrays are very common in PHP and if you do any type of coding in WordPress you’re likely to encounter them. In this article I explain the basics of what an array is and how to work with them.

  • Snippet: Using ?? / Null coalescing operator in PHP 7

    Welcome to Snippets! Like most I struggle to publish blog posts regularly, so I’ve decided to publish short snippets whenever I have a “why on earth didn’t I know this / do this sooner?” moment. Working with client sites I tend to be very conservative in my use of new features as I don’t control […]