How can a <textarea> content be stored in an array in PHP?

To store the content of a <textarea> in an array in PHP, you can use the $_POST superglobal array to access the value submitted by the form. You can then store this value in an array for further processing or manipulation.

```php
// Check if the form has been submitted
if ($_SERVER[&quot;REQUEST_METHOD&quot;] == &quot;POST&quot;) {
    // Get the content of the &lt;textarea&gt; and store it in an array
    $textarea_content = $_POST[&#039;textarea_name&#039;];
    
    // Convert the content to an array using explode() function
    $content_array = explode(&quot;\n&quot;, $textarea_content);
    
    // Print the content of the array
    print_r($content_array);
}
```

In this code snippet, we first check if the form has been submitted using $_SERVER[&quot;REQUEST_METHOD&quot;]. We then access the content of the &lt;textarea&gt; using $_POST[&#039;textarea_name&#039;] and store it in a variable. We use the explode() function to convert the content into an array based on line breaks. Finally, we print the content of the array using print_r().