Site Tools


strlen

# $EPIC: strlen.txt,v 1.2 2006/08/20 16:57:01 sthalik Exp $

Synopsis:

$strlen(<string>)

Technical:

This function is used to determine the length, in characters, of a given string.

Practical:

This function is effectively the same as the $@var notation, except that $@var only works for variables, not functions or automatic expandos.

Returns:

>0 number of characters in string
0 no string given

Examples:

$strlen($1-3)                  returns length of args $1 to $3
$strlen(epic is cool)          returns "12"
strlen.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1