이 스타일은 PHPDoc 스타일로 사용할 수 있습니다.
/**
* return string of content between provided
* $from and $to positions.
* if $to is not provided $from will be considered
* a string to remove.
*
* @param string $str string from select contents
* @param string $from starting point for select contents
* @param string $to ending point for select contents *
* @return string
* @author
*/
function extractor($str,$from,$to)
{
$from_pos = strpos($str,$from);
$from_pos = $from_pos + strlen($from);
$to_pos = strpos($str,$to,$from_pos);// to must be after from
$return = substr($str,$from_pos,$to_pos-$from_pos);
unset($str,$from,$to,$from_pos,$to_pos);
return $return;
}
[DocBlock] (http://en.wikipedia.org/wiki/PHPDoc) – NDM