Problem is, I can't get preg_match_all to return anything. >.<
Here are a few things I've tried.
preg_match_all("|(<!-- PART) [^>]+ (-->)(.*)(<!-- /PART) [^>]+ (-->)|iU", $tutorial, $tutorial_data);
preg_match_all("|<(!-- PART) [^>]+ (--)>(.*)<(!-- /PART) [^>]+ (--)>|iU", $tutorial, $tutorial_data);
preg_match_all("|<(!--) [^>]+ (--)>(.*)<(!--) /[^>]+ (--)>|iU", $tutorial, $tutorial_data);
preg_match_all('#<\!-- (PART 1) -->(.*)<\!-- (/PART 1) -->#i', $tutorial, $tutorial_data);
And a few other variations.
I've gone basic for debugging, such as only doing the front tag and not the back, specifically putting a number instead of a regex bit for 'any number', etc, but when I use print_r(), this is what I get.
Array ( [0] => Array ( ) [1] => Array ( ) [2] => Array ( ) [3] => Array ( ) [4] => Array ( ) [5] => Array ( ) )
Empty arrays. :S
Can anyone help me a little? I just don't understand how it can be returning the fact that there are matches, but does not output any actual match data. I've experimented with this function a tad, and it does return the results, but not with what I'm trying to do.
And I've also tried using all flags that the function has available, and those only result in less data, such as one empty array, instead of an empty multi-dimensional array.
