String array store a string

Hello, I want to assign a single value to a string array.

globals:
  - id: artimeh
    type: char[24][6]

The content of the string is stored in this ID. → id: time_h0
Format is “11:00” (5 characters)
How could i manage to store this content in array artimeh[1] for example?
TIA Thomas

What it is? Global? Text sensor?

Why not use an array of std::string? Or a vector, depending on the use case?

Maybe tell us what you are storing and why?

globals:
  - id: artimeh
    type: std::string[24]

...

  on_...
    - lambda: |-
        id(artimeh)[1] = "11:00";