Article of the week

Recursive implementations of some Maths sequences and series in PHP

Recursive implementations of some Maths sequences and series in PHP

28 Jul 2017 17:54:44


Example implementations of some popular maths sequences and series in PHP programming language.


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 full article »

Recent articles

Genericons unicode values

21 Dec 2016 11:07:56

Genericons unicode values

Genericons is a set of vector icons embedded in a webfont. They look crisp, scale well and are easy to use. Moreover they are also free to use for whatever project you may need them. If you've dealt with a standard WordPress theme like twentyfifteen you probably noticed, ...

Read more »

Sorting objects by their property in PHP

10 Dec 2016 13:10:14

Sorting objects by their property in PHP

Lets say you have got an array of assorted objects, each with the same set of properties, which are either numbers or strings, and you would like to sort them by one of those properties using PHP. Since it is a fairly common requirement, you can expect the basic tools are ...

Read more »

Setting home and siteurl dynamically in Wordpress

10 Dec 2016 09:44:06

Setting home and siteurl dynamically in Wordpress

If for some reason you have set siteurl and / or home options wrong in your WordPress installation database and as a result can't access admin panel, or perhaps have a reason not to change these options in wp_options table, you can overwrite them either in wp_config.php or ...

Read more »

The most used Wordpress hooks

28 Nov 2016 20:53:05

The most used Wordpress hooks

Below is a list of the most often used hooks (sorted by the number of callbacks attached ) on a vanilla installation of WordPress (v.4.6.1) with twentysixteen theme loaded. On such a setup, in total I found 261 hooks, something was attached to. As seen in the list, the most ...

Read more »