static function markString(string $text, int $position, int $length, array $mark) : string
    {
        $text = substr_replace($text, $mark[0], $position, 0);
        $text = substr_replace($text, $mark[1], $position + $length + strlen($mark[0]), 0);

        return $text;
    }
static function markString(string $text, int $position, int $length, array $mark) : string
    {
        $text = substr_replace($text, $mark[0], $position, 0);
        $text = substr_replace($text, $mark[1], $position + $length + strlen($mark[0]), 0);

        return $text;
    }
static function markString ( string $ text , int $ position , int $ length , array $ mark ) : string { $ text = substr_replace ( $ text , $ mark [ 0 ] , $ position , 0 ) ; $ text = substr_replace ( $ text , $ mark [ 1 ] , $ position + $ length + strlen ( $ mark [ 0 ] ) , 0 ) ; return $ text ; }
Mark a string

@param string $text
@param int $position
@param int $length
@param array $mark
@return string
Mark a string