Curl
in package
Convenience wrapper around the cURL functions to allow mocking.
Table of Contents
Methods
- close() : mixed
- exec() : mixed
- init() : resource
- setoptArray() : bool
Methods
close()
public
close(resource $ch) : mixed
Parameters
- $ch : resource
Tags
exec()
public
exec(resource $ch) : mixed
Parameters
- $ch : resource
Tags
init()
public
init([string $url = null ]) : resource
Parameters
- $url : string = null
Tags
Return values
resource —cURL handle
setoptArray()
public
setoptArray(resource $ch, array<string|int, mixed> $options) : bool
Parameters
- $ch : resource
- $options : array<string|int, mixed>