Skip to main content

parse_str

Function parse_str 

Source
pub fn parse_str(input: &[u8]) -> Array
Expand description

parse_str($string, $result): php_default_treat_data(PARSE_STRING) with the default arg_separator.input (&), max_input_vars and max_input_nesting_level. Also how Swoole fills $request->get and, for application/x-www-form-urlencoded bodies, $request->post.

The input is a C string to the engine: it ends at the first NUL byte.