Monthly Archives: June 2013

Transforming an array into multilevel array (PHP)

In PHP there is function array_combine(). This function may not work as expected in the case if a key is met more than once. For this reason, I created the following function: function array_combine_array($keyname, $array) { $ret = array(); foreach($array … Continue reading

Posted in Programming | Tagged | Leave a comment