Get the length of variable

var="some string"
echo ${#var}
# 11
click the source code to copy