thanks guys for your replies, finally sussed it with
$subStringCount = substr_count($text, "PROPOSER ACCIDENTS");
for ($i = 0; $i < $subStringCount; $i++){
$text = preg_replace("/PROPOSER ACCIDENTS/", "[PROPOSER ACCIDENT " . $i . "]", $text, 1);
}
I couldnt dump the duplicate section headers as they contained different information within, so i needed a way of renaming the section header so parse_ini would keep them in.
Thank you again!