It was probably an accident removing that. A better solution over substr() is to use parse_url() with PHP_URL_QUERY.