svn: /phpdoc/es/trunk/reference/strings/functions/ parse-str.xml

From: Date: Sat, 11 Dec 2010 22:37:07 +0000
Subject: svn: /phpdoc/es/trunk/reference/strings/functions/ parse-str.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-3948@lists.php.net to get a copy of this message
jpberdejo Sat, 11 Dec 2010 22:37:07 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306242 Log: New translated file Changed paths: A phpdoc/es/trunk/reference/strings/functions/parse-str.xml Added: phpdoc/es/trunk/reference/strings/functions/parse-str.xml =================================================================== --- phpdoc/es/trunk/reference/strings/functions/parse-str.xml (rev 0) +++ phpdoc/es/trunk/reference/strings/functions/parse-str.xml 2010-12-11 22:37:07 UTC (rev 306242) @@ -0,0 +1,157 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: XX Maintainer: jpberdejo Status: ready --> +<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.parse-str"> + <refnamediv> + <refname>parse_str</refname> + <refpurpose>Interpreta el string en variables</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>void</type><methodname>parse_str</methodname> + <methodparam><type>string</type><parameter>str</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter role="reference">arr</parameter></methodparam> + </methodsynopsis> + <para> + Interpreta <parameter>str</parameter> como si fuera un string de consulta + pasado por medio de una URL y establece variables en el ámbito actual. + </para> + <note> + <para> + Para obtener el <literal>QUERY_STRING</literal> actual, se puede utilizar la variable + <varname>$_SERVER['QUERY_STRING']</varname>. + También se puede consultar la sección sobre + <link linkend="language.variables.external">variables a partir de fuentes + externas</link>. + </para> + </note> + <note> + <para> + La configuración <link linkend="ini.magic-quotes-gpc">magic_quotes_gpc</link> + afecta la salida de esta función, ya que <function>parse_str</function> usa + el mismo mecanismo que PHP utiliza para poblar las variables <varname>$_GET</varname>, + <varname>$_POST</varname>, etc. + </para> + </note> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>str</parameter></term> + <listitem> + <para> + El string de entrada. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>arr</parameter></term> + <listitem> + <para> + Si el segundo parámetro <parameter>arr</parameter> está presente, + es su lugar las variables serán almacenadas en esta variable como elementos de array. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.void; + </para> + </refsect1> + + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>4.0.3</entry> + <entry> + Fue agregado el parámetro <parameter>arr</parameter>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Utilizando <function>parse_str</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$str = "first=value&arr[]=foo+bar&arr[]=baz"; +parse_str($str); +echo $first; // value +echo $arr[0]; // foo bar +echo $arr[1]; // baz + +parse_str($str, $output); +echo $output['first']; // value +echo $output['arr'][0]; // foo bar +echo $output['arr'][1]; // baz + +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>parse_url</function></member> + <member><function>pathinfo</function></member> + <member><function>http_build_query</function></member> + <member><function>get_magic_quotes_gpc</function></member> + <member><function>urldecode</function></member> + </simplelist> + </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 +--> + Property changes on: phpdoc/es/trunk/reference/strings/functions/parse-str.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL Added: svn:eol-style + native

« previous php.doc.es (#3948) next »