Storing data found within elements into an array

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]

Need more information, you are being too vague.

Sponsor our Newsletter | Privacy Policy | Terms of Service