mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Added note about magic_quotes_gpc and slashes under 'variables from outside php'
A link to html faq was also added. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61271 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c6b4175eec
commit
b73e38061b
1 changed files with 16 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.20 $ -->
|
||||
<!-- $Revision: 1.21 $ -->
|
||||
<chapter id="language.variables">
|
||||
<title>Variables</title>
|
||||
|
||||
|
@ -860,11 +860,22 @@ echo "$a $hello";
|
|||
be available as <varname>$username</varname> in the global scope.
|
||||
</para>
|
||||
|
||||
<note>
|
||||
<para>
|
||||
The <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link>
|
||||
configuration directive affects Get, Post and Cookie values. If
|
||||
turned on, value (It's "PHP!") will automagically become (It\'s \"PHP!\").
|
||||
Escaping is needed for DB insertion. Also see
|
||||
<function>addslashes</function>, <function>stripslashes</function> and
|
||||
<link linkend="ini.magic-quotes-sybase">magic_quotes_sybase</link>.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<simpara>
|
||||
PHP also understands arrays in the context of form variables. You
|
||||
may, for example, group related variables together, or use this
|
||||
feature to retrieve values from a multiple select
|
||||
input:
|
||||
PHP also understands arrays in the context of form variables
|
||||
(see the <link linkend="faq.html">related faq</link>). You may,
|
||||
for example, group related variables together, or use this
|
||||
feature to retrieve values from a multiple select input:
|
||||
</simpara>
|
||||
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue