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

Quicksort algorithm implementation in PHP

13 Apr 2017 09:56:52

Quicksort algorithm implementation in PHP

Quicksort algorithm, as the name of it suggests, is yet another piece of code for sorting ( lists of ) items. The algorithm has been in use for nearly 60 years ( Anthony Hoare - its inventor - published it in 1961 ), and is still one of the fastest ways of sorting large lists ...

Read more »

Recursive bubble sort algorithm in PHP

06 Apr 2017 17:48:19

Recursive bubble sort algorithm in PHP

In this article I'm going to take a quick look at arranging elements of a list in a chosen order, or simply speaking - sorting, with a twist, though. Many algorithms have been devised for the purpose of sorting over the last sixty or so years. Arguably, one of the oldest ...

Read more »

Number of primes between two numbers

05 Apr 2017 10:53:55

Number of primes between two numbers

Sometimes, especially when dealing with basics of Number Theory, you come across a question that requires stating whether a number is a prime or perhaps finding all the primes there are between two given numbers. In this article I present a tiny PHP class which has methods to ...

Read more »

Optimizing JPEG graphics files with ImageMagick

17 Mar 2017 13:36:30

Optimizing JPEG graphics files with ImageMagick

The other day I had a closer look at some of my websites speed and server load statistics with a view to improving them a little. There are quiet a few methods to achieve that. Google have some nice articles on the subject. Check their "Make the Web Faster" pages if ...

Read more »