Article of the week

Setting home and siteurl dynamically in Wordpress

Setting home and siteurl dynamically in Wordpress

10 Dec 2016 09:44:06


Article on how to leverage WordPress hooks to set home and site_url dynamically.


Read full article »

Recent articles

Non-destructive array extending in PHP

25 May 2017 13:30:48

Non-destructive array extending in PHP

Non-destructive extending of array in PHP Suppose you have to extend a PHP array by inserting some value at a particular index of it without destroying other pieces of data stored in the array. In PHP Extending array non-desctructively by prepending an item can be achieved with ...

Read more »

Installing WordPress language files automatically

20 May 2017 22:03:03

Installing WordPress language files automatically

Installing language file(s) is one of possibly hundreds small tasks one has to plod through while building a multilingual website or blog with WordPress. Mostly due to being documented well, the task is not difficult to carry out. Nonetheless, it diverts attention from other ...

Read more »

Insertion Sort algorithm and sorting dates in PHP

03 May 2017 14:04:47

Insertion Sort algorithm and sorting dates in PHP

When it comes to dealing with dates and times in PHP, one look at the language related manual pages is enough to concolude, there is a daunting number of various functions for all sorts of purposes, from stuff for managing timestamp and timzones to routines for formatting and ...

Read more »

Sorting UTF-8 strings in PHP

29 Apr 2017 16:41:28

Sorting UTF-8 strings in PHP

When trying to sort a list of strings in PHP, one needs a reliable way of comparing the strings first. PHP has some proven comparison functions, notably strcmp. Strcmp works fine for ASCII character set, in which the same number of bits, namely seven, is used to encode a symbol. ...

Read more »