#16 replaced print_r($value) with $value->__toString()