hphp_debug_caller_info

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

Description

function hphp_debug_caller_info(): array<string, mixed>;

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.