public static function fromArray(array $input) {
        $input = array_map(function($value) {
            return is_array($value) ? ArrayObject::fromArray($value) : $value;
        }, $input);

        return new ArrayObject($input);
    }
public static function fromArray(array $input) {
        $input = array_map(function($value) {
            return is_array($value) ? ArrayObject::fromArray($value) : $value;
        }, $input);

        return new ArrayObject($input);
    }
public static function fromArray ( array $ input ) { $ input = array_map ( function ( $ value ) { return is_array ( $ value ) ? ArrayObject :: fromArray ( $ value ) : $ value ; } , $ input ) ; return new ArrayObject ( $ input ) ; }
Creates an "Loops\ArrayObject" from a normal PHP array.
Nested arrays will recursively converted.

@param array $input The input array
@return Loops\ArrayObject The input array as a "Loops\ArrayObject".
Creates an Loops \ ArrayObject from a normal PHP array . Nested arrays will recursively converted .