}
}
-
+
}
/**
$documentation .= <<<EOF
{$comma} {$type} {$param}
EOF;
- if (empty($comma)) {
+ if (empty($comma)) {
$comma = ',';
}
}
$documentation .= <<<EOF
<b>)</b> :
EOF;
- foreach($functiondescription['return'] as $return => $type) {
- $documentation .= <<<EOF
- {$type} <br/>
+ foreach($functiondescription['return'] as $return => $type) {
+ $documentation .= <<<EOF
+ <i>
+ {$type}</i>
+EOF;
+ if (is_array($type)) {
+ $arraytype = "<pre>".print_r($type, true)."</pre>";
+ $documentation .= <<<EOF
+ <i> {$return} {$arraytype} <br><br></i>
EOF;
- }
+ }
+ }
foreach($functiondescription['params'] as $param => $type) {
if (is_array($type)) {
$documentation .= <<<EOF
</ul>
EOF;
-
+
}
echo $documentation;