Phpparse_str () function, phpparse_str function _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
Phpparse_str () function, phpparse_str function. Phpparse_str () function, phpparse_str function phpparse_str () function parses the query string to a variable, mainly used for passing values (parameters) between pages ). This article introduces phppa php parse_str () function and phpparse_str function

The php parse_str () function parses the query string to a variable and is mainly used to pass values (parameters) between pages ). This article describes how to use the php parse_str () function. For more information, see.

Definition and usage

The parse_str () function parses the query string to a variable.

Note: if not setArrayParameter, the variable set by this function will overwrite the existing variable with the same name.

Note: The magic_quotes_gpc setting in the php. ini file affects the output of this function. If enabled, the variable will be converted by addslashes () before parse_str () resolution.

Syntax
parse_str(string,array)

  

Parameters Description
String Required. Specifies the string to be parsed.
Array Optional. Specifies the name of the array that stores the variable. 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.3ArrayParameters.

Instance

Store variables in the array:

 

Online operation

Address: http://www.manongjc.com/article/858.html

Related reading:

Php echo outputs one or more strings

Php print () function output print string

The php parse_str () function parses the passed parameter string to the variable.

The php ord () function obtains the ASCII value of the first character of a string.

The php number_format () function is used to format numbers by thousands of digits.

The php nl2br () function converts the line break in the string into a line break in HTML.

Php nl_langinfo () function to obtain local information

Http://www.bkjia.com/PHPjc/1127593.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1127593.htmlTechArticlephp parse_str () function, phpparse_str function php parse_str () function parses the query string to the variable, mainly used to pass values between pages (parameters ). This article introduces the php pa to coders...

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.