★ wanayoo — archive 1999 http://il.php.net/manual/function.parse-str.php3Nouvelle recherche | Portail wanayoo

PHP3 Home Page

Manual Table of Contents
Up to Strings
Quick Reference
Strings
* AddSlashes
* bin2hex
* Chop
* Chr
* chunk_split
* convert_cyr_string
* crypt
* echo
* explode
* flush
* get_meta_tags
* htmlspecialchars
* htmlentities
* implode
* join
* ltrim
* md5
* nl2br
* Ord
* parse_str
* print
* printf
* quoted_printable_decode
* QuoteMeta
* rawurldecode
* rawurlencode
* setlocale
* similar_text
* soundex
* sprintf
* strchr
* strcmp
* strcspn
* strip_tags
* StripSlashes
* strlen
* strrpos
* strpos
* strrchr
* strrev
* strspn
* strstr
* strtok
* strtolower
* strtoupper
* str_replace
* strtr
* substr
* trim
* ucfirst
* ucwords
Manual: parse_str
View the source code for this pageSearch the site



Previous page
 Ord
print 
Next page


parse_str

parse_str -- parses the string into variables

Description

void parse_str(string str);

Parses str as if it were the query string passed via an URL and sets variables in the current scope.

Example 1. Using parse_str()

$str = "first=value&second[]=this+works&second[]=another";
parse_str($str);
echo $first; /* prints "value" */
echo $second[0]; /* prints "this works" */
echo $second[1]; /* prints "another" */
      


 About Notes


Previous page
 Ord
print 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
Israel
Some elements of this website are subject to copyright.