<commit_before>.. _zend.form.element.textarea:

Textarea
^^^^^^^^

``Zend\Form\Element\Textarea`` represents a textarea form input.
It can be used with the ``Zend\Form\View\Helper\FormTextarea`` view helper.

``Zend\Form\Element\Textarea`` extends from :ref:`Zend\Form\Element <zend.form.element>`.

.. _zend.form.element.textarea.usage:

.. rubric:: Basic Usage

.. code-block:: php
   :linenos:

   use Zend\Form\Element;
   use Zend\Form\Form;

   $textarea = new Element\Textarea('my-textarea');
   $textarea->setLabel('Enter a description');

   $form = new Form('my-form');
   $form->add($textarea);<commit_msg>element.textarea - Fixed namespace slashes<commit_after>.. _zend.form.element.textarea:

Textarea
^^^^^^^^

``Zend\Form\Element\Textarea`` represents a textarea form input.
It can be used with the ``Zend\Form\View\Helper\FormTextarea`` view helper.

``Zend\Form\Element\Textarea`` extends from :ref:`Zend\\Form\\Element <zend.form.element>`.

.. _zend.form.element.textarea.usage:

.. rubric:: Basic Usage

.. code-block:: php
   :linenos:

   use Zend\Form\Element;
   use Zend\Form\Form;

   $textarea = new Element\Textarea('my-textarea');
   $textarea->setLabel('Enter a description');

   $form = new Form('my-form');
   $form->add($textarea);
{'fraction_non_alphanumeric': 0.17391304347826086, 'fraction_numerical': 0.0, 'mean_word_length': 4.043824701195219, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '824228', 'n_tokens_mistral': 450, 'n_tokens_neox': 419, 'n_words': 90}