<HTML ><HEAD ><TITLE >mb_parse_str</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="PHP Manual" HREF="index.html"><LINK REL="UP" TITLE="Multi-Byte String Functions" HREF="ref.mbstring.html"><LINK REL="PREVIOUS" TITLE="mb_output_handler" HREF="function.mb-output-handler.html"><LINK REL="NEXT" TITLE="mb_preferred_mime_name" HREF="function.mb-preferred-mime-name.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.mb-output-handler.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.mb-preferred-mime-name.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.mb-parse-str" ></A >mb_parse_str</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN46749" ></A ><P > (PHP 4 >= 4.0.6)</P >mb_parse_str -- Parse GET/POST/COOKIE data and set global variable </DIV ><DIV CLASS="refsect1" ><A NAME="AEN46752" ></A ><H2 >Description</H2 >boolean <B CLASS="methodname" >mb_parse_str</B > ( string encoded_string [, array result])<BR ></BR ><P > <B CLASS="function" >mb_parse_str()</B > parses GET/POST/COOKIE data and sets global variables. Since PHP does not provide raw POST/COOKIE data, it can only used for GET data for now. It preses URL encoded data, detects encoding, converts coding to internal encoding and set values to <TT CLASS="parameter" ><I >result</I ></TT > array or global variables. </P ><P > <TT CLASS="parameter" ><I >encoded_string</I ></TT >: URL encoded data. </P ><P > <TT CLASS="parameter" ><I >result</I ></TT >: Array contains decoded and character encoding converted values. </P ><P > Return Value: It returns <TT CLASS="constant" ><B >TRUE</B ></TT > for success or <TT CLASS="constant" ><B >FALSE</B ></TT > for failure. </P ><P > See also <A HREF="function.mb-detect-order.html" ><B CLASS="function" >mb_detect_order()</B ></A >, <A HREF="function.mb-internal-encoding.html" ><B CLASS="function" >mb_internal_encoding()</B ></A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.mb-output-handler.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.mb-preferred-mime-name.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >mb_output_handler</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.mbstring.html" ACCESSKEY="U" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >mb_preferred_mime_name</TD ></TR ></TABLE ></DIV ></BODY ></HTML >