php-doc-en/reference/mysqli/functions/mysqli-escape-string.xml
Kamil Tekiela df1072f8d2 Improve mysqli_real_escape_string docs
* Tidy up the alias situation
  It should look the same as https://www.php.net/manual/en/function.mysqli-set-opt.php

* Add "produce" word

Copied from MySQL manual

* Removed old note

  This was changed some time back around PHP 7.3. In PHP 8 all of these warnings have been converted to Errors and the function doesn't return NULL or FALSE anymore.

* Revert Doc Bug 

  I'm sorry, but this note doesn't belong here. It is absolutely useless to point it out in this particular place. People migrating from mysql_* API have to do a lot more work than ensuring their escaping function works. This might have been added as a comment, but it should not be part of the official doc page.

* Provide more reasonable example

* Remove mysqli_character_set_name from See also

Closes GH-498.
2021-03-23 13:35:16 +01:00

37 lines
970 B
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="function.mysqli-escape-string" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>mysqli::escape_string</refname>
<refname>mysqli_escape_string</refname>
<refpurpose>&Alias; <function>mysqli_real_escape_string</function></refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>
&info.function.alias; <function>mysqli_real_escape_string</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->