Re: Replace punctuation in an associative array

The Doctor <[email protected]> Fri, 3 Mar 2023 01:03:01 -0000 (UTC)
Newsgroups comp.lang.php
Organization NetKnow News
Message-ID <[email protected]>
J.O. Aho <[email protected]> wrote:
: On 3/2/23 13:44, The Doctor wrote:

: A wild guess, this still to do with your json, which you have asked help 
: with quite often.

: > I wish to replace [[ with [
: > 
: > AND
: > 
: > ]] with ] in an associative array .

: Don't store objects as an array and place those arrays in an array.

: Create an object and place the object into the array which is part of 
: your main-object.

All right.  Even in a recursive loop?


: > How can I do this?

: If you just look at a string, string replace could work quite well to do 
: this
: str_replace('[[','[',$str);


Woth a try.


-- 
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 
The kingdom is inside out.  -unknown Beware https://mindspring.com