What is the difference between escape_string and real_escape_string?

I am working on a dreamviewer. When I try to write basic syntax, it usually autocompletes. enter image description here

As you can see, it offers 2 options for "escape": real_escape_string and escape_string. I wonder if there is a difference between the two?

+4
source share
2 answers

escape_string is an alias of real_escape_string , so they are identical.

here is the link for documentation:

http://php.net/manual/en/mysqli.real-escape-string.php

+11
source

Well, before asking any questions, you should at least try to figure out google .... :) :)

The following link will help you resolve your doubts.
http://php.net/manual/en/mysqli.real-escape-string.php :) :)

+1
source

All Articles