PEAR Manual
Prev |  | Next

# $factory->fromArray()

$factory->fromArray() -- fromArray - builds a set of elements from a key=>value array (eg. DO->toArray()) the second parameter is an optional HTML_Element array to merge it into.

## Synopsis

    require_once 'Flexy/Factory.php';

``array HTML_Template_Flexy_Factory::fromArray` (array $ar [, optional $ret = array()])`

## Description

This package is not documented yet.

## Parameter

- `$ar` key(tag name) => value

- `$ret` array key(tag name) => HTML_Element

## Return value

return Array of HTML_Template_Flexy_Elements

## Throws

throws no exceptions thrown

## Note

Not documented yet.

Prev | Home | Next
$factory->freeze() | Up | $factory->fromArrayPrefixed()