HTML_QuickForm::toArray() – Returns the form's contents in an array


require_once 'HTML/QuickForm.php';

array HTML_QuickForm::toArray ( boolean $collectHidden = false )


Returns the form's contents in an array, uses Array renderer for this.


boolean $collectHidden

Whether to collect hidden elements (passed to the Renderer's constructor)

Return value

return array of form contents, structure is described in renderer documentation.


throws no exceptions thrown


since 2.0

This function can not be called statically.

Returns a reference to default renderer object (Previous) Returns an HTML version of the form (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.