Hello Lorna,

I just had the same challenge the other day and got to the same conclusion as your snippet.

Was fairly well documented on the PHP manual as you also pointed out.

Thanks for sharing this little gem of knowledge.

Cheers,
Peter