<?php
foreach($final as $key => $val) {
    if (is_array($val) && count($val) == 1) $final[$key] = $val[0];
...

PHP convert single itemed sub-a...

by paulswansea.myopenid.com, August 25, 2010 20:45, 2 refactorings, tagged with php, 2d array, multidimensional-array

I tried using array_walk to...

E4bd1595f34e7e03765eda6ed65bf6bb Talk
class Array
  def to_h
    hash = {}
...

Ruby Conversion from the 2d arra...

by Dmitry Polushkin, October 22, 2008 09:11, 7 refactorings, tagged with convert, hash, 2d array

Conversion from the 2d arra...

832ed6ace46d61032151f4e1864c057f Talk