if($condition){
$i = $i + 1;
}
else
{
$i = $i - 1;
}
如何在 phpDoc 中记录一个简单的 if, else 条件?
它将是这样的:
if ($condition)
{
/**
* This will increase counter
*/
$i = $i + 1;
} else
{
/**
* This will decrease counter
*/
$i = $i - 1;
}
查看文档:http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.ignore.pkg.html