Skip to content

Commit 972c167

Browse files
authored
Update helpers.php
1 parent 1e9ef0c commit 972c167

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/helpers.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ function tap($value, $callback = null)
3434
* @param array $headers 请求头
3535
*
3636
* @return bool|array
37+
*
38+
* @example:
39+
*
40+
* $resp=curl("http://httpbin.org/ip", 'get', []);
41+
* die($resp['data']['response']);
3742
*/
3843
function curl(string $url, string $method = "GET", array $params = [], array $headers = [])
3944
{

0 commit comments

Comments
 (0)