BLHTML.org

BLHTML.org / Web Programming / BLHTML / BLHTML Manual / BLHTML funktion list / BLHTML funktion list / STR /

 
  STR example 1080 0
String management:
#$A=A#
asc A=#STR type=asc value=$A#<br>
chr 88=#STR type=chr value=88#<br><br>

#$I(I love u)#
#$I#=#STR type=len value=$I#
<br>
word[1]=#STR type=word no=1 value=$I#<br><br>

Example taken from PHP substr:<br>
#$str(abcdef)#
from=1: #STR type=select from=1 value=$str#<br>
from=0 to=2: #STR type=select to=2 value=$str#<br><br>

from=1 to=3: #STR type=select from=1 to=3 value=$str#<br>
from=0 to=4: #STR type=select to=4 value=$str#<br>
from=0 to=8: #STR type=select from=0 to=8 value=$str#<br>
from=-1 to=1: #STR type=select from=-1 value=$str#<br><br>

#STR type=upper value=$str return=b#
upper: #$b#<br>
lower: #STR type=lower value=$b#<br>
names kALLE aNKA: #STR type=names value(kALLE aNKA)#<br><br>

#$Girl(I love Luna)#
Girl: #$Girl#<br>
#STR type=replace from=Luna to=Jaana value=$Girl return=NewGirl#
NewGirl: #$NewGirl#<br>
len: #STR type=len value=$NewGirl#<br>
pos Love: #STR type=pos get=love value=$NewGirl#<br><br>

#STR type=rot13 value=$Girl return=Girl#
Girl rot13: #$Girl#<br>
#STR type=rot13 value=$Girl return=Girl#
Girl rot13 back: #$Girl#<br>
#STR type=crypt value=$Girl return=Girl#
Girl is crypted: #$Girl#<br><br>

#STR type=html value(<b>this if fat 'strange' letters "åäö"</b>) return=special#
show html: #$special#<br>
Back to html text: #STR type=txt value=$special#

Returns:
asc A=65
chr 88=X

I love u=8
word[1]=love

Example taken from PHP substr:
from=1 to=1: bcdef
from=0 to=2: ab

from=1 to=3: bcd
from=0 to=4: abcd
from=0 to=8: abcdef
from=-1 to=1: f

upper: ABCDEF
lower: abcdef
names kALLE aNKA: Kalle Anka

Girl: I love Luna
NewGirl: I love Jaana
len: 12
pos Love: 2

Girl rot13: V ybir Yhan
Girl rot13 back: I love Luna
Girl is crypted: $1$ihY6GrKa$vanrq7DOhq0zUr/vV373H/

show html: this if fat 'strange' letters "åäö"
Back to html text: this if fat 'strange' letters "åäö"

More information:
  • #STR#
  • BLHTML forum  


    apache MySQL PHP No to software patents! BLHTML
    © 2003, 2010 BLHTML
    This page is created with BLHTML in 0.0895 seconds