← All docs

mysqli_quote_string()

Escapes a string and wraps it in single quotes.

mysqli_quote_string()

function mysqli_quote_string(mixed $mysql, string $string): string

Escapes a string and wraps it in single quotes.

Parameters:

  • $mysql (mixed)
  • $string (string)

Returns: string

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mysqli_quote_string is implemented in the compiler, see the internals page.