PHP 8.4.24 Released!

Voting

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

The Note You're Voting On

chris at mcfadyen dot ca
18 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