I am trying to understand how to convert html textarea to php array,
I used the form with POST to deliver the request to the PHP script, and the php file receives them with the following line:
$ids = array($_POST['ids']);
Needless to say, it puts everything on one line
Array ( [0] => line1 line2 line3 line4 )
I need final results to replace this:
$numbers = array( "line1", "line2", "line3", "line4" );
What would be the best approach to separation and reanalysis?
user1455655
source share