Skip to content

debugIterable

github-actions edited this page Mar 31, 2026 · 1 revision

Prints a debug representation of an iterable object.

This function iterates over a Traversable object and prints each key-value pair, along with an optional section title. If no section title is provided, the function uses the class name of the iterable object.

Example Usage:


  • Full name: debugIterable
  • Defined in: src/functions.php

Parameters

Parameter Type Description
$iterable iterable the iterable object to debug
$section string|null an optional title for the output section

Return Value

void

Clone this wiki locally