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

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 »

Finding whether a UTF-8 encoded string is palindrome

27 Jul 2017 13:49:31

Finding whether a UTF-8 encoded string is palindrome

When recently entertaining myself with recursion in PHP I have come across a problem which asked to find whether a given word was a character-unit palindrome or not. I guess, a word of explanation on character-unit palindromes is needed in this place now. Basically, they are ...

Read more »