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

 Compound interest in PHP part 2

21 Sep 2017 12:43:34

Compound interest in PHP part 2

First article ( a link to it can be found at the end of this article ) in this series was all about developing libraries for compound interest calculation in PHP programming language. Now, it is time to employ those pieces of code to do what they have been built for. In this ...

Read more »

Compound interest in PHP part 1

20 Sep 2017 00:25:21

Compound interest in PHP part 1

In this article I look at how to write a reusable piece of code for finding compound interest and total accumulated value of deposit or loan in PHP programming language. Code developed here will become a basis to both a command line interface script and website form then. Since ...

Read more »

Validating user input with functions in PHP

09 Sep 2017 21:07:45

Validating user input with functions in PHP

User input validation is one of the oldest and most frequently occurring problems in computer programming. It crops up regardless of programming language and at almost every project. If not dealt with skillfully, in particular when larger amount of user input is involved, it ...

Read more »

Mapping numeric score to feedback message in PHP

06 Sep 2017 23:04:22

Mapping numeric score to feedback message in PHP

The other day I coded a sort of game in PHP programming language. One of it's features is a final score pop-up message, which consists of three parts. They are a number, a percent and a few words of a humoristic player performance feeback. The feedback is based upon the ...

Read more »