At the moment, quote() can only add enclose a string in ' or ".
It would be useful if any character could be added.
And if the quoting character is one of < > [ ] { } ( ), this function would also know to enclose the string in balanced brackets.
A 't' third parameter to trim the quoted string would also be useful.