mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-23 20:38:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
54 lines
1.6 KiB
XML
54 lines
1.6 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
|
<refentry id="function.addslashes">
|
|
<refnamediv>
|
|
<refname>addslashes</refname>
|
|
<refpurpose>Quote string with slashes</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>addslashes</methodname>
|
|
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Returns a string with backslashes before characters that need
|
|
to be quoted in database queries etc. These characters are
|
|
single quote (<literal>'</literal>), double quote
|
|
(<literal>"</literal>), backslash (<literal>\</literal>)
|
|
and NUL (the &null; byte).
|
|
</para>
|
|
<note>
|
|
<para>
|
|
<link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> is ON by default.
|
|
</para>
|
|
</note>
|
|
<para>
|
|
See also <function>stripslashes</function>,
|
|
<function>htmlspecialchars</function>, and
|
|
<function>quotemeta</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:"../../../../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
|
|
-->
|