method escapeValue documentation in bbn\Db
Return a string with quotes and percent escaped.
Example
X::dump($db->escapeValue("My father's job is interesting");
// (string) My father\'s job is interesting
function(string $value, $esc = '\'')
{
return str_replace(
'%', '\\%', $esc === '"' ? Str::escapeDquotes($value) : Str::escapeSquotes($value)
);
}
Return a string with quotes and percent escaped. BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions