★ wanayoo — archive 1999 http://fr.php.net/manual/function.parse-str.phpNouvelle recherche | Portail wanayoo
PHP Friday, April 13, 2001  
downloads | documentation | faq | support | reporting bugs | links 

search for in the  


previousOrd
printnext

Last updated: Mon, 08 Jan 2001

parse_str

(PHP 3, PHP 4 )

parse_str -- Parses the string into variables

Description

void parse_str (string str [, array arr])

Parses str as if it were the query string passed via an URL and sets variables in the current scope. If the second parameter arr is present, variables are stored in this variable as an array elements instead.

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" */
      

previousOrd
printnext

Last updated: Mon, 08 Jan 2001
add note | about notes

show source | credits | mirror sites:  

Copyright © 2001 The PHP Group
All rights reserved.
This mirror generously provided by: L'Université Michel de Montaigne Bordeaux III
Last updated: Fri Apr 13 05:02:35 2001 MET DST