public static function ltrim ( $docComment ) {
        $regexp = array(
                        '|^[\s\t]*(/\*\*)|um' => '\\1',
                        '|^[\s\t]*([ ]\*/)|um' => '\\1',
                        '|^[\s\t]*([ ]\*[ ]*)|um' => '\\1',
                       );
        $patterns = array_keys($regexp);
        $replacements = array_values($regexp);
        $docComment = preg_replace($patterns, $replacements, $docComment);
        $docComment = trim($docComment);
        return $docComment;
    }
public static function ltrim ( $docComment ) {
        $regexp = array(
                        '|^[\s\t]*(/\*\*)|um' => '\\1',
                        '|^[\s\t]*([ ]\*/)|um' => '\\1',
                        '|^[\s\t]*([ ]\*[ ]*)|um' => '\\1',
                       );
        $patterns = array_keys($regexp);
        $replacements = array_values($regexp);
        $docComment = preg_replace($patterns, $replacements, $docComment);
        $docComment = trim($docComment);
        return $docComment;
    }
public static function ltrim ( $ docComment ) { $ regexp = array ( '|^[\s\t]*(/\*\*)|um' => '\\1' , '|^[\s\t]*([ ]\*/)|um' => '\\1' , '|^[\s\t]*([ ]\*[ ]*)|um' => '\\1' , ) ; $ patterns = array_keys ( $ regexp ) ; $ replacements = array_values ( $ regexp ) ; $ docComment = preg_replace ( $ patterns , $ replacements , $ docComment ) ; $ docComment = trim ( $ docComment ) ; return $ docComment ; }
Trim spaces and tabs on the left

@param string $docComment
@return string Trimmed DocComment
Trim spaces and tabs on the left