public static function pad($text, $width, $pad = ' ', $mode = STR_PAD_RIGHT)
    {
        $width = strlen($text) - mb_strlen($text, 'UTF-8') + $width;
        return str_pad($text, $width, $pad, $mode);
    }
public static function pad($text, $width, $pad = ' ', $mode = STR_PAD_RIGHT)
    {
        $width = strlen($text) - mb_strlen($text, 'UTF-8') + $width;
        return str_pad($text, $width, $pad, $mode);
    }
public static function pad ( $ text , $ width , $ pad = ' ' , $ mode = STR_PAD_RIGHT ) { $ width = strlen ( $ text ) - mb_strlen ( $ text , 'UTF-8' ) + $ width ; return str_pad ( $ text , $ width , $ pad , $ mode ) ; }
A UT8 compatible string pad

@param string $text
@param int    $width
@param string $pad
@param int    $mode

@return string
A UT8 compatible string pad