Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NVP reply would be great as a dictionary #18

Open
brianmc opened this issue Sep 23, 2015 · 0 comments
Open

NVP reply would be great as a dictionary #18

brianmc opened this issue Sep 23, 2015 · 0 comments

Comments

@brianmc
Copy link
Contributor

brianmc commented Sep 23, 2015

Right now its just a big string. Some simple processing in the NVP client could return an array. e.g.

$reply_array = explode("\n", $reply);

foreach($reply_array as $val) {
$item_array = explode("=", $val, 2);
$reply_dictionary[$item_array[0]] = $item_array[1];
}

now you can access the reply just like the request: $reply['name']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant