I haven't tried it, but since the second param to parse_str() is an array by reference shouldn't this result in an E_NOTICE? $attributes should be pre-defined on the previous line.