Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
KhristenkoYura committed May 4, 2015
1 parent 9995aa1 commit ae4fcf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ echo $client->get('http://example.com');
### Check error
```php
$result = $client->get('http://example.com');
echo (!$result->hasError() ? 'Ok: ' . $result : 'Error: ' .$result->error . ' ('.$result->errorCode.')'), PHP_EOL;
echo (!$result->hasError()
? 'Ok: ' . $result
: 'Error: ' .$result->error . ' ('.$result->errorCode.')')
, PHP_EOL;
```
### Add curl options in request
```php
Expand Down

0 comments on commit ae4fcf5

Please sign in to comment.