PHP parse_str () function, Phpparse_str function _php Tutorial

Source: Internet
Author: User

PHP parse_str () function, Phpparse_str function


The PHP parse_str () function parses the query string into a variable, primarily for passing values (parameters) between pages. This article to the Code Farm introduction PHP parse_str () function of the use of the code of interest to farmers can refer to.

Definition and usage

The Parse_str () function parses the query string into a variable.

Note: If the array parameter is not set, the variable set by the function overrides the already existing variable with the same name.

Note: The MAGIC_QUOTES_GPC setting in the php.ini file affects the output of the function. If enabled, the variable is converted by addslashes () before Parse_str () is resolved.

Grammar

Parse_str (String,array)

  

Parameters Description
String Necessary. Specifies the string to parse.
Array Optional. Specifies the name of the array that stores the variables. This parameter indicates that the variable will be stored in the array.

Technical details

return value: no return value.
PHP version: 4 +
Update log: In PHP 4.0.3, the array parameter is added.

Instance

To store variables in an array:

 
  

Run online

Original address: http://www.manongjc.com/article/858.html

Related reading:

PHP echo Output one or more strings

PHP print () function output printing string

The PHP parse_str () function parses the passed argument string into the variable

The PHP ord () function gets the ASCII value of the first character of the string

The PHP Number_format () function formats numbers according to the thousands group

The PHP nl2br () function converts a newline character in a string to a newline symbol in an HTML line

PHP nl_langinfo () function to get specific local information

http://www.bkjia.com/PHPjc/1127593.html www.bkjia.com true http://www.bkjia.com/PHPjc/1127593.html techarticle php parse_str () function, Phpparse_str function PHP parse_str () function to parse the query string into a variable, mainly used for passing values (parameters) between pages. This article introduces the code Farm to php pa ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.