Site Tools


strlen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

strlen [2006/08/29 16:08] (current)
Line 1: Line 1:
 +# $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:​======
 +<​file>​
 +$strlen($1-3) ​                 returns length of args $1 to $3
 +$strlen(epic is cool)          returns "​12"​
 +</​file>​
  
strlen.txt ยท Last modified: 2006/08/29 16:08 (external edit)