Re: Replace punctuation in an associative array

Arno Welzel <[email protected]> Sat, 4 Mar 2023 14:42:44 +0100
Newsgroups comp.lang.php
Message-ID <[email protected]>
The Doctor, 2023-03-04 06:19:

[...]
> What is happening is that the arrauy is being formed by a subarray
> and the end product is seeing a [[ at the start and a ]]
> at the end when it should be seeing a [ at the start and a ] at the end.

Then don't create a subarray!

Again: if you need objects, then create objects and not arrays!


-- 
Arno Welzel
https://arnowelzel.de