rindex - Locates character in string (last occurence).
rindex(string, char) rindex (str:"…", chr:"…")
The rindex() function returns a substring to the last occurrence of the character c in the string s.
The index() function returns a substring to the first occurrence of the character c in the string s.
Note: In the followings examples, the _ between the { should be removed to make it work.
test res={_{ rindex("pierre","p"); ","; rindex("pierre","i"); ","; rindex("pierre","e"); ","; rindex("pierre","r"); ","; x = rindex("pierre","x"); if (x == null) then "x is null"; endif rindex(str:"piérre",chr:"é"); ","; }}. Got: 'res=pierre,ierre,e,re,x is nullérre,.' res={_{ index("pierre","p"); ","; index("pierre","i"); ","; index("pierre","e"); ","; index("pierre","r"); ","; x = index("pierre","x"); if (x == null) then "x is null"; endif index(str:"piérre",chr:"é"); ","; }}.
String
- addslashes
- base64-decode
- base64-encode
- bin2hex
- cgidata
- chr
- chunk-split
- Count-chars
- crc32
- crypt
- esc
- explode
- find-in-set
- getre
- hash
- hex2bin
- html2text
- htmlentities
- htmlspecialchars
- htmlspecialchars-decode
- html-entity-decode
- implode
- isalnum
- isalpha
- isascii
- isblank
- iscntrl
- isdigit
- isgraph
- isprint
- ispunct
- isspace
- isupper
- iswalnum
- iswalpha
- iswblank
- iswcntrl
- iswdigit
- iswgraph
- iswprint
- iswpunct
- iswspace
- iswupper
- iswxdigit
- isxdigit
- lc
- lcfirst
- length
- ltrim
- md5
- money-format
- nl2br
- number-format
- ord
- parse
- parse-query-string
- print
- printf
- quotemeta
- resub
- rtrim
- savecsv
- savexls
- rindex
- trim
- trim2
- type
- uc
- ucfirst
- ucwords
- unstringnify
- uriparse
- urldecode
- urlencode
- wordwrap
- wstrsub
- xls
- xmlget
- sha1
- sha1file
- sncodelib
- split
- strcasecmp
- strcspn
- strinatcmp
- stringnify
- strings
- stripos
- stripslashes
- strip-tags
- strnatcmp
- strncasecmp
- strncmp
- strpos
- strrev
- strripos
- strrpos
- strsub
- strtr
- strtr-ctx
- strtr-list
- str-getcsv
- str-ireplace
- str-pad
- str-repeat
- str-replace
- str-shuffle
- str-split
- substr
- islower
- iswlower
- splitre
- extention
- filename
- isinteger
- isfloat
- acrypt
- adecrypt
- recaptcha
- levenshtein
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com