# string_length 関数

文字列の文字数。

## 書き方

### string_length(text)

**text**

文字列。文字列を受け取ります。

## 例題

- $\displaystyle \operatorname{string\_length}(\text{hello world}) = 11$

  `string_length("hello world")`

  ソルバーでは、`string_length("hello world")` の答えは `11` です。

  [ソルバーで開く](https://ja.hilberon.com/?q=string_length%28%22hello%20world%22%29)

## 関連する関数

- [to_string](https://ja.hilberon.com/library/to_string)

  値を文字列として表します。
- [string_join](https://ja.hilberon.com/library/string_join)

  文字列を1つに連結します。
- [is_string](https://ja.hilberon.com/library/is_string)

  値が文字列かどうかを判定します。

---
Source: https://ja.hilberon.com/library/string_length
