Array
(
[0] => (1) This is a test.
[1] => a) This is a subtest one.
[2] => b) And another one.
[3] => (2) A really cool test.
[4] => (3) Here is the problem, text for each numbered line is
supposed to be on a single line like in (1) and (2), but
the text often spans multiple lines of text.
[5] => (4) How can I match the multi-line entries and unwrap them to single lines?
[6] => (1) This is a test.
[7] => a) This is a subtest one.
[8] => b) And another one.
[9] => (2) A really cool test.
[10] => (3) Here is the problem, text for each numbered line is
supposed to be on a single line like in (1) and (2), but
the text often spans multiple lines of text.
[11] => (4) How can I match the multi-line entries and unwrap them to single lines?
[12] => (1) This is a test.
[13] => a) This is a subtest one.
[14] => b) And another one.
[15] => (2) A really cool test.
[16] => (3) Here is the problem, text for each numbered line is
supposed to be on a single line like in (1) and (2), but
the text often spans multiple lines of text.
[17] => (4) How can I match the multi-line entries and unwrap them to single lines?
[18] => a) dfk
)
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Array
(
[0] => (1) This is a test.
[1] => a) This is a subtest one.
[2] => b) And another one.
[3] => (2) A really cool test.
[4] => (3) Here is the problem, text for each numbered line is
supposed to be on a single line like in (1) and (2), but
the text often spans multiple lines of text.
[5] => (4) How can I match the multi-line entries and unwrap them to single lines?
[6] => (1) This is a test.
[7] => a) This is a subtest one.
[8] => b) And another one.
[9] => (2) A really cool test.
[10] => (3) Here is the problem, text for each numbered line is
supposed to be on a single line like in (1) and (2), but
the text often spans multiple lines of text.
[11] => (4) How can I match the multi-line entries and unwrap them to single lines?
[12] => (1) This is a test.
[13] => a) This is a subtest one.
[14] => b) And another one.
[15] => (2) A really cool test.
[16] => (3) Here is the problem, text for each numbered line is
supposed to be on a single line like in (1) and (2), but
the text often spans multiple lines of text.
[17] => (4) How can I match the multi-line entries and unwrap them to single lines?
[18] => a) dfk
)