Is there any way to detect if a PHP array is recursive?
For example, consider the following code:
$a = ['value', &$a];
How can I loop through the array $a and detect the recursion?
Is there any way to detect if a PHP array is recursive?
For example, consider the following code:
$a = ['value', &$a];
How can I loop through the array $a and detect the recursion?