@matigo Sorry to hear that.
@matigo Thanks for the clue. In the end, the trim needed to go onto the final element of the array immediately after the explode, rather than before the implode.
Now to turn the whole sorry mess into a function. But that will have to wait until tomorrow.
@matigo OK, I give up, if you're not going to respect my formatting …
Let's just say that for the last element, the string consists of each element on a separate line, in the terminal. While for the penultimate element, they are as I expect, a single line.
@matigo That the weird part. In the terminal it looks like
1,2,1,3</code></pre>
The same implode on the penultimate element looks like
1,2,3,4,1
@matigo Good sleuthing.
I, in the meantime, am having trouble figuring out why implode() includes the CR/LF on the final element and how to stop it doing that.
@jws Absolutely. If it is inclusive and does not affect decisions of care, no issue.
As you say, probably trash.
/@matigo
@jws I think the issue is whether they did it for all drunks or only a subset of drunks.
/@matigo