International PHP Conference 2019 - Spring Edition

mysqli_escape_string

(PHP 5, PHP 7)

mysqli_escape_stringApelido para mysqli_real_escape_string()

Descrição

Esta função é um apelido para mysqli_real_escape_string().

Veja Também

  • mysqli_real_escape_string() - Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection

add a note add a note

User Contributed Notes 2 notes

up
-9
Anonymous
4 months ago
$string = $conn->escape_string($_POST["data"]);
up
-26
Lawrence DOliveiro
10 months ago
mysqli_escape_string is a shorter name than mysqli_real_escape_string and doesn’t seem to be deprecated, so you might as well save typing.
To Top