PHP Programing language

parse_str() Functions in PHP
Previous Home Next

parse_str()

The parse_str() function parses a query string into variables.

Syntax:
parse_str(string,array)

In above syntax, "string" specifies the string to parse and "array" specifies the name of an array to store the variables. This parameter indicates that the variables will be stored in an array.

Example:

<?php
parse_str("name=Arun &age=43");
echo $name."<br>";
echo $age;
?>

 

Output:

Arun 
43
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: