hphp_debug_caller_info

Description

function hphp_debug_caller_info(): array<string,mixed>

Retrieves information about the caller that invoked the current function or method.

Return Values

  • array - - Returns an associative array. On success, the array will contain keys 'file', 'function', 'line' and optionally 'class' which indicate the filename, function, line number and class name (if in class context) of the callsite that invoked the current function or method.