共用方式為


string_size()

適用於:✅Microsoft網狀架構Azure 數據✅總管 Azure 監視器✅Microsoft Sentinel

傳回輸入字串的大小,以位元組為單位。

語法

string_size(source)

深入瞭解 語法慣例

參數

姓名 類型​​ 必要 描述
source string ✔️ 要傳回位元組大小的字串。

傳回

傳回輸入字串的長度,以位元組為單位。

範例

字母字串

print size = string_size("hello")

輸出

size
5

字母和符號的字串

print size = string_size("⒦⒰⒮⒯⒪")

輸出

size
15