/** * Return the form as an array, like {@link getValues()}, except for fully * expanded, so keys such as test[a][b] => 'blah' become expanded, nested * arrays, much like PHP would return from a POST of the form. */ function getExpandedValues() { return SimpleForm_FormArrayHelper::expand($this->getValues()); }
function testCollapseWithNumericKeys() { $from = array('prize' => array(5 => '120', 22 => '120')); $this->assertEqual(SimpleForm_FormArrayHelper::collapse($from), array('prize[5]' => '120', 'prize[22]' => '120')); }