← All docs

curl_getinfo()

Gets information about the last transfer.

curl_getinfo()

function curl_getinfo(CurlHandle $handle, ?int $option = null): mixed

Gets information about the last transfer.

Parameters:

  • $handle (CurlHandle)
  • $option (?int), default null, optional

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how curl_getinfo is implemented in the compiler, see the internals page.