@NogDogOct 11.2004 — #[i]Originally posted by ShrineDesigns [/i]
[B]try this:[code=php]<?php $array = preg_split("/r+n+/", $_POST['textarea'], NULL, PREG_SPLIT_NO_EMPTY); ?>[/code] [/B][/QUOTE] I was thinking of essentially the same thing, but also trying to figure out how to handle the fact that I'm not sure which browser/OS combinations might send "rn", "n", or "r"; so I came up with: [code=php] $array = preg_split("/[rn]?[rn]/", $_POST['textarea'], -1, PREG_SPLIT_NO_EMPTY); [/code]
@silent11authorOct 12.2004 — #[i]Originally posted by NogDog [/i]
[B]I was thinking of essentially the same thing, but also trying to figure out how to handle the fact that I'm not sure which browser/OS combinations might send "rn", "n", or "r"; so I came up with: