for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AppUtils;
class VariableInfo_Renderer_String_Array extends VariableInfo_Renderer_String
{
protected function _render()
$result = $this->traverseArray($this->value);
return print_r($result, true);
}
protected function traverseArray(array $array, int $level=0) : array
$result = array();
foreach($array as $key => $val)
if(is_array($val))
$result[$key] = $this->traverseArray($val, ($level+1));
else
$result[$key] = parseVariable($val)->toString();
return $result;