← All docs
mysqli_real_escape_string()
Escapes a string for use in a statement, honoring the connection charset.
mysqli_real_escape_string()
function mysqli_real_escape_string(mixed $mysql, string $string): string
Escapes a string for use in a statement, honoring the connection charset.
Parameters:
$mysql(mixed)$string(string)
Returns: string
Availability
- Compiled (AOT): supported through an injected elephc-PHP prelude.
eval()(magician interpreter): not available inside eval’d code.
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how mysqli_real_escape_string is implemented in the compiler, see the internals page.