Article of the week

Quicksort algorithm implementation in PHP

Quicksort algorithm implementation in PHP

13 Apr 2017 09:56:52


Quicksort algorithm implementation in PHP programming language.


Read full article »

Recent articles

Traversing array from the middle in PHP

30 Aug 2017 15:51:20

Traversing array from the middle in PHP

Traversing an array starting from the middle item in it is in many ways similar to traversing it from the beginning or the end. One small catch is such that, the middle item, or to be more accurate, the middle index of the array, has to be found before the rest of job can be ...

Read more »

Square pyramidal numbers and implementing them in PHP

19 Aug 2017 14:24:59

Square pyramidal numbers and implementing them in PHP

Square pyramidal numbers and implementing them in PHP Imagine a couple of boxes standing on a table. In each of these boxes there is one or more balls. Boxes are sorted according to the number of balls they contain. When you look into these boxes, you notice, that in the first ...

Read more »

Comparing two arrays or objects with a function in PHP

17 Aug 2017 16:07:40

Comparing two arrays or objects with a function in PHP

In this article I look how to compare two ordinary arrays (or objects based on array). The problem can be solved fairly easily using a comparison function. It accepts two items, one from each the arrays and returns a result of the comparison. You combine these results and on the ...

Read more »

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 »