Article of the week

Mapping numeric score to feedback message in PHP

Mapping numeric score to feedback message in PHP

06 Sep 2017 23:04:22


Article on mapping a numeric or percent score to a feedback message with code examples in PHP programming language.


Read full article »

Recent articles

Secondary database query and shortcodes in Wordpress

20 Apr 2017 11:14:15

Secondary database query and shortcodes in Wordpress

Secondary database queries are queries that you do in Wordpress once the main, URL-based query has been performed. Typically, these extra queries are used to fetch data like featured or category post and embed it on in a section of a template file. Alternatively, the data goes ...

Read more »

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 »