escape_string和real_escape_string有什么区别?

I'm working on dreamviewer. When i'm trying to write basic syntax it usually autocompletes. enter image description here

As you see it offers 2 variants for "escape": real_escape_string and escape_string. I wonder, Is there any difference between them?

escape_string is an alias to real_escape_string, so they're identical.

here's a link for documentation:

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

Well, before asking any question, you should atleast try once to explore on google.... :):)

Following link will help you to clear your doubt.
http://php.net/manual/en/mysqli.real-escape-string.php :):)