This version is out of date, covering development from v4.6.0 to v4.7.1. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
|
A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Scope : Item-based operators : substr(data,start,length) | aTbRef Site Map |
substr(data,start,length) |
Operator Type: | Data manipulation |
Operator Scope of Action: | Item |
Extracts a substring of string. For example:
substr("test",0,1)
returns "t", while
substr("test",1,2)
returns "es". All arguments are evaluated; if the designated characters don't exist, an empty string is return.
Note that in expressions like
$Initial=substr($Name,0,1)
the value of $Name is not changed.
Up: Item-based operators | |
Previous: sqrt(argument) | Next: tan(argument) |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]