note 47507 deleted from function.parse-str by sean
| From: | sean@php.net | Date: | Fri, 19 Nov 2004 16:25:11 +0000 |
| Subject: | note 47507 deleted from function.parse-str by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80756@lists.php.net to get a copy of this message | ||
Note Submitter: james at gogo dot co dot nz
----
WARNING!
magic_quotes_gpc will also affect parse_str, that is
<?php
echo "Magic Quotes GPC:" . get_magic_quotes_gpc() . "<br/>";
echo "Magic Quotes Runtime:" . get_magic_quotes_runtime() . "<br/>";
$str = "expr=foo' bar' narf'";
parse_str($str, $array);
print_r($array);
?>
produces
Magic Quotes GPC:1
Magic Quotes Runtime:0
Array ( [expr] => foo\' bar\' narf\' )
noting the quotes apostrophes
---
James Sleeman
----
Reason: incoporating into manual