Replace punctuation in an associative array

The Doctor <[email protected]> Thu, 2 Mar 2023 12:44:41 -0000 (UTC)
Newsgroups comp.lang.php
Organization NetKnow News
Message-ID <[email protected]>
I wish to replace [[ with [

AND

]] with ] in an associative array .

How can I do this?

-- 
Member - Liberal International This is [email protected] Ici [email protected]
Yahweh, King & country!Never Satan President Republic!Beware AntiChrist rising!
Look at Psalms 14 and 53 on Atheism https://www.empire.kred/ROOTNK?t=94a1f39b 
Only an evil person could punish someone for doing good, and only an evil ideology could allow it.  -unknown Beware https://mindspring.com