以下是一个PHP实例,展示了如何使用递归函数来输出一个树形结构。

```php

PHP实例:输出树形结构 装修材料

function drawTree($level = 0) {

$indent = str_repeat("