llms_esc_and_quote_str( string $str )

Escape and add quotes to a string, useful for array mapping when building queries.

Parameters Parameters


(string) (Required) Input string.

Top ↑

Return Return

(string) Escaped string wrapped in quotation marks.

Top ↑

Source Source

File: includes/llms.functions.core.php

function llms_esc_and_quote_str( $str ) {
	return "'" . esc_sql( $str ) . "'";

Top ↑

Changelog Changelog

Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.