Optimising PHP: Class initialisation

In this article we discuss alternative methods for loading classes depending on how we intend to use the class and how many times we intend to use it.

Read more

PHP Loops

Loops are used in programming to iterate over an item, either for a known or unknown amount of times, until a certain criteria has been reached.

You have the choice of writing a single loop and specifying how it ends and writing the same code over and over again to satisfy every iteration of the loop (this will only work if you know the number of times the loop will run). The choice is yours.

Read more

OOP: Writing a class and creating objects

Classes and objects are a key principal of OOP (Object-Oriented Programming). The idea behind OOP is that classes are created to represent a real world entity; this real world entity could be a tangible object, such as a person or a car, or an intangible object, such as a job position or a date.

Read more

Accessing the WordPress JSON API

Read more

Add #HashTag and @UserName Twitter links to plain text

This short and simple PHP function takes a plain text String as it’s input and returns rich text HTML. If any #HashTags, Twitter @UserNames or URLs are included within the input string then these are converted to clickable links to their Twitter counterpart.

Read more

WordPress plugin: Twitter profile widget

Read more

WP Github Embed, adding release information

Read more