Let’s say I had a file that contained repeating elements:
[code]TEXT 1
TEXT 2
TEXT 3
TEXT 4
TEXT 5
TEXT 6[/code]
How would I use preg_match, for example, to store this data into an array?
[php]array (
array (TEXT 1, TEST 2),
array (TEXT 3, TEST 4),
array (TEXT 5, TEST 6)
);[/php]