Chaîne de caractères
AddCSlashes AddSlashes bin2hex chop chr chunk_split convert_cyr_string count_chars crc32 crypt echo explode get_html_translation_table get_meta_tags hebrev hebrevc htmlentities htmlspecialchars implode join levenshtein localeconv ltrim md5 metaphone nl2br ord parse_str print printf quoted_printable_decode QuoteMeta rtrim sscanf setlocale similar_text soundex sprintf strncasecmp strcasecmp strchr strcmp strcoll strcspn strip_tags StripCSlashes StripSlashes stristr strlen strnatcmp strnatcasecmp strncmp str_pad strpos strrchr str_repeat strrev strrpos strspn strstr strtok strtolower strtoupper str_replace strtr substr substr_count substr_replace trim ucfirst ucwords wordwrap
Description
void parse_str(string str ,[array arr ])
Analyse la chaîne str comme si c'était une chaîne passée par URL, et affecte les variables qu'elle y trouve.
<?php$str = "first=valeur&second[]=ceci+marche&second[]=encore";parse_str($str);echo $first; /* affiche "valeur" */echo $second[0]; /* affiche "ceci marche" */echo $second[1]; /* affiche "encore" */?>