body
function set_post_body(
array,
parent_key = null) { foreach (
array as
key =>
value) { if (is_array(
value)) {
this->set_post_body(
value, isset(
parent_key) ? sprintf('
\
%s
[
\
%s
]',
parent_key, urlencode(
key)) : urlencode(
key)); } else {
this->post_body .=
this->post_body != '' ? '&' : '';
key = isset(
parent_key) ? sprintf('
\
%s
[
\
%s
]',
parent_key, urlencode(
key)) : urlencode(
key);
this->post_body .=
key . '=' . urlencode(__stripslashes(
value)); } } }