PHP Code - 1
Textarea lines to array (skip empty lines)