I've created a textarea so users can insert class codes associated to a particular module. The user will copy from excel and paste into a html textarea. for example:
When pasted in the textarea the above is separated by tabs. In php how would i convert each row into a seperate array? e.g. Thanks, any help would be appreciated.
array(1)
(
[0] => "moduleA"
[1] => "class1"
)
array(2)
(
[0] => "moduleA"
[1] => "class2"
)
array(3)
(
[0] => "moduleA"
[1] => "class3"
)