Article of the week

Installing WordPress language files automatically

Installing WordPress language files automatically

20 May 2017 22:03:03


Installing language files (.mo) automatically in WordPress.


Installing language file(s) is one of possibly hundreds small tasks one has to plod through while building a multilingual website or blog with WordPress. Mostly due to being documented well, the task is not difficult to carry out. Nonetheless, it diverts attention from other ...

Read full article »

Recent articles

Comparing two arrays or objects with a function in PHP

17 Aug 2017 16:07:40

Comparing two arrays or objects with a function in PHP

In this article I look how to compare two arrays against one another in PHP. For the purpose, I provide a flexible PHP class, which allows for comparisons of both arrays and objects whose internal working is based on array. The class, I called it SWWWArrayCompare, carries out ...

Read more »

Formatting array of numbers recursively in PHP

12 Aug 2017 15:57:38

Formatting array of numbers recursively in PHP

If you have ever tried to obtain a formatted value in PHP, it is likely you did so with one of printf, sprintf of vsprintf functions. In general, these utilities accept a formatting string and one or more arguments. php.net has some good examples and descriptions on how they ...

Read more »

Recursive min and max functions in PHP and speed test

05 Aug 2017 15:03:39

Recursive min and max functions in PHP and speed test

This article provides two more examples of PHP functions which employ linear recursion. They are min() and max(). I wrote them partly for fun, but also to carry out a basic speed test on a piece of interpreted PHP code, results of which I hoped, would give me some insight into ...

Read more »

Recursive implementations of some Maths sequences and series in PHP

28 Jul 2017 17:54:44

Recursive implementations of some Maths sequences and series in PHP

In this article I give a couple of PHP implementations of popular Maths sequences and series. Broadly, each piece of code given returns nth term of a sequence / series. Each of the implementations depends on linear recursion. Each of the functions a is a static methods of class ...

Read more »