HH\heapgraph_foreach_edge

Iterates over the edges in the heap graph

Description

function heapgraph_foreach_edge(
  resource $heapgraph,
  mixed $callback,
): void

Calls back on every edge.

Parameters

  • resource$heapgraph - The resource obtained with heapgraph_create
  • mixed$callback - function(array $edge): void {} See documentation for heapgraph_edge() about the "edge" array passed to $callback