From c118e61ebe902ca478e904e60203f18d68d9aa4a Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 1 Sep 2016 00:08:31 -0700 Subject: [PATCH] Update example callback as response is not always a string --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 19fb5e9..9414c53 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,8 @@ $multi_curl = new MultiCurl(); $multi_curl->success(function($instance) { echo 'call to "' . $instance->url . '" was successful.' . "\n"; - echo 'response: ' . $instance->response . "\n"; + echo 'response:' . "\n"; + var_dump($instance->response); }); $multi_curl->error(function($instance) { echo 'call to "' . $instance->url . '" was unsuccessful.' . "\n";