mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-10-09 21:45:29 +00:00
Use short array syntax
This commit is contained in:
@@ -9,11 +9,11 @@ use Curl\Curl;
|
||||
// -d '{"id":"1","content":"Hello world!","date":"2015-06-30 19:42:21"}' \
|
||||
// "https://httpbin.org/post"
|
||||
|
||||
$data = array(
|
||||
$data = [
|
||||
'id' => '1',
|
||||
'content' => 'Hello world!',
|
||||
'date' => date('Y-m-d H:i:s'),
|
||||
);
|
||||
];
|
||||
|
||||
$curl = new Curl();
|
||||
$curl->setDefaultJsonDecoder($assoc = true);
|
||||
|
||||
Reference in New Issue
Block a user