parse_str function

parse_str  function

parse_str
———
This function will parse the string into variables

Syntax:
=======
void parse_str ( string str [, array arr])

The parse_str() function is designed to take a query string like that one and convert it to variables in the same way that PHP does when variables come in. The difference is that variables parsed using parse_str() are converted to global variables, as opposed to elements inside $_GET

example:
=====

<?php

parse_str(”value=23&alpha=K”);

echo $value.”<br />”;

echo $alpha;

?>

23
k

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.