International PHP Conference Munich 2025

Voting

: min(seven, one)?
(Example: nine)

The Note You're Voting On

chris at mcfadyen dot ca
17 years ago
If you wish a version of parse_str sans magic quotes, the following will do the trick:

<?php
function parse_query($str) {
$pairs = explode('&', $str);

foreach(
$pairs as $pair) {
list(
$name, $value) = explode('=', $pair, 2);
global $
$name;
$
$name = $value;
}
}
?>

<< Back to user notes page

To Top