Skip to content

Commit ddc0912

Browse files
committed
Add example in README
1 parent aef12eb commit ddc0912

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ Method : get()
2727
Returns TRUE on success or FALSE on failure.
2828

2929
## Example of use
30-
* $o = new HttpRequest;
31-
* $o->setUrl('http://devraph.net/api.php?option=test'); // SETTING URL
32-
* $o->setPost(array('login' => 'raph', 'password' => 'demo')); // SETTING REQUEST
33-
* $o->setTimeout(15); // SETTING TIMEOUT
34-
* $o->post(); // POST
30+
```php
31+
$o = new HttpRequest;
32+
$o->setUrl('http://devraph.net/api.php?option=test'); // SETTING URL
33+
$o->setPost(array('login' => 'raph', 'password' => 'demo')); // SETTING REQUEST
34+
$o->setTimeout(15); // SETTING TIMEOUT
35+
$o->post(); // POST
36+
```

0 commit comments

Comments
 (0)