The quote() method adds quotes around an input string (if required) and escapes special characters
within that string, making the result safe to use inside a direct SQL query. Although modern programming strongly
recommends using prepared statements with prepare(), the quote() method remains useful for
quick queries where you want to manually ensure that the input data won't break the SQL command or permit an
attack.
Practical Application: The method returns a secured string, which you then embed directly into your SQL code. Check the process at home by following these steps:
quote method directly on the connection object ($this->connection).'text').