wp_parse_str() WP 1.0
Parses a string into variables to be stored in an array.
Basis of: wp_parse_args()
1 time = 0.000001s = speed of light | 50000 times = 0.07s = speed of light | PHP 7.3.12, WP 5.3.2
Hooks from the function
Return
Null. Nothing.
Usage
wp_parse_str( $string, $array );
- $string(string) (required)
- The string to be parsed.
- $array(array) (required) (passed by reference — &)
- Variables will be stored in this array.
Changelog
Since 2.2.1 | Introduced. |
Code of wp_parse_str() wp parse str WP 5.6
function wp_parse_str( $string, &$array ) {
parse_str( $string, $array );
/**
* Filters the array of variables derived from a parsed string.
*
* @since 2.3.0
*
* @param array $array The array populated with variables.
*/
$array = apply_filters( 'wp_parse_str', $array );
}Related Functions
From tag: PHP analogues (PHP functions replacement)
More from tag: Supporting (helper utility auxiliary)
More from category: Helper Functions
- __return_empty_array()
- __return_empty_string()
- __return_false()
- __return_null()
- __return_true()
- __return_zero()
- build_query()
- get_page_hierarchy()
- get_temp_dir()
- human_readable_duration()
- is_email()
- is_php_version_compatible()
- is_serialized()
- is_serialized_string()
- is_wp_version_compatible()
- map_deep()
- maybe_serialize()
- maybe_unserialize()
- path_join()
- seems_utf8()
- stripslashes_deep()
- timer_stop()
- urlencode_deep()
- wp_array_slice_assoc()
- wp_debug_backtrace_summary()
- wp_doing_ajax()
- wp_extract_urls()
- wp_filter_object_list()
- wp_html_split()
- wp_is_json_request()
- wp_is_numeric_array()
- wp_is_uuid()
- wp_kses_array_lc()
- wp_kses_hair()
- wp_kses_uri_attributes()
- wp_list_filter()