> For the complete documentation index, see [llms.txt](https://hiimmaxx7s-organization.gitbook.io/gpm-automate/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hiimmaxx7s-organization.gitbook.io/gpm-automate/no-code-automation/text-and-number/split-text.md).

# Split text

VD: Có 1 chuỗi đầu vào là `hello|my|name|is|GPM|Automate`\
Kết quả trả về là mảng ký tự `a`. Từ đó có thể lấy được các đoạn text được ngăn cách bởi dấu | như sau:\
`$a[0] = hello`\
`$a[1] = my`\
`$a[2] = name`\
`$a[3] = is`\
`$a[4] = GPM`\
`$a[5] = Automate`\
**Chú ý:** Chỉ số của mảng ký tự bắt đầu từ 0.<br>

<figure><img src="/files/pra4XM7QK4kkEBQnaYSM" alt=""><figcaption><p>Split text</p></figcaption></figure>
