Ok, so I know this isn't the best way to do it, but to avoid infinite loops i'm just going to limit this to 10 items, but for some reason, I can't get it to move forward to the next item. What am I doing wrong?
function getSections($needle, $haystack){
$mid_text = array();
$lower_text =...