Skip to content

Kirby 5.2.0

$database->escape()

Escapes a value to be used for a safe query NOTE: Prepared statements using bound parameters are more secure and solid

$database->escape(string $value): string

Parameters

Name Type Default
$valuerequired string no default value

Return type

string

This method modifies the existing $database object it is applied to and returns it again.

Parent class

Kirby\Database\Database