document-detail.php
Table of Contents
Functions
- renderArray() : string
- Renders an array as a formatted output
- renderArrayAccordion() : string
- Renders an array as an accordion with expand/collapse functionality
Functions
renderArray()
Renders an array as a formatted output
renderArray(array<string|int, mixed> $array[, int $depth = 0 ]) : string
Parameters
- $array : array<string|int, mixed>
-
The array to render
- $depth : int = 0
-
Current nesting depth
Return values
stringrenderArrayAccordion()
Renders an array as an accordion with expand/collapse functionality
renderArrayAccordion(string $key, array<string|int, mixed> $array[, int $depth = 0 ]) : string
Parameters
- $key : string
-
The array key
- $array : array<string|int, mixed>
-
The array to render
- $depth : int = 0
-
Current nesting depth