I have a textarea field set up for users to enter multiple lines of text. What i am trying to do is to put each line into an array, but for some unknown reason my solution is not working.
Code: Select all
$text = explode("\r\n", $text);
echo $arrcount = count($text);A print_r() shows :
Code: Select all
Array ( [0] => here is some text\\r\\nand here is some more text\\r\\nand some more text )-- tarja