Article of the week

Comparing two arrays or objects with a function in PHP

Comparing two arrays or objects with a function in PHP

17 Aug 2017 16:07:40


Article on the subject of comparing arrays or objects based on array with a function in PHP programming language.


Read full article »

Recent articles

POST request and Transients API in WordPress

16 Apr 2018 22:25:52

POST request and Transients API in WordPress

It is striking how often basic scripting of POST request can cause a real headache to a person who is not somewhat familiar with certain assumptions WordPress makes on how these requests should be handled. Even more confusion can ensue in cases when a feedback has to be given ...

Read more »

Watermarking images with ImageMagick and BASH

30 Oct 2017 21:11:08

Watermarking images with ImageMagick and BASH

In this article I give a command line script for watermarking JPEG and PNG files with ImageMagick. Primary reason for me to write the script was the need of watermarking a large number of my own graphics files before posting them online as well as watermarking JPEGs and PNGs for ...

Read more »

Finding permutations with Heap algorithm in PHP

26 Oct 2017 16:54:32

Finding permutations with Heap algorithm in PHP

Suppose, you are given a list of two items, say one is called "a" and the other "b" and asked to find all the possible arrangements (also called permutations without repetition) of these items. All your arrangements should consist of exactly the number of ...

Read more »

Arrangements with repetition implementation in PHP

08 Oct 2017 14:29:33

Arrangements with repetition implementation in PHP

This article, and in particular PHP code it contains, is an outcome of my lack of patience with regards to making arrangements with repetition of finite set items. Recently, while solving a Probability problem, which eventually led to an infinite series, I reached a step which ...

Read more »