Professional Documents
Culture Documents
Emezeta PHP Card v0.2
Emezeta PHP Card v0.2
mez
et
aPH
PCa
rdR
ef
er
en
ceC
he
atS
he
et P
HPf
un
ct
io
ns
,p
ar
ame
te
rs
,d
at
a-
ty
pea
ndo
th
er
s,
byM
anz h
tt
p:
/
/www
.e
mez
et
a.
co
m
{
D
at
aty
pe O
per
at
or
s C
on
st
an
ts C
on
tr
ol
St
ru
ct
ur
es
}
booleani s_bool(
) C
omme
nt
s Ar
it
hme ti
cs[ +][-][
*] [/][%] d
efi
ne(name, val
ue,sensit
iv)
e
i
s_i
nteger
() //c
omme nt#1 As
s i
gnme nts[ c
onst
ant(name)showconstval
ue i
f(expr
) whi
l
e(expr
) s
witc
h(expr
){
i
ntege ris_i
nt()=is_l
ong() scalar nu mb er =][
+=] [
-=] [
*=][
/=]
m fl
oat=d oub l
ei s
_fl
oat(
)=is_d
oubl
e() i
s_sc
alar()is_numeri
c() /*comment#2*/ Bi
twise[
&] [
|][^]
[~][<<][>>] d
efi
ned(name)checki
fi
sd ef
i
ne d s
tat
eme
nt#1; s
tat
eme
nt#1; c e1:
as
i i
s_r
eal
(
) #comment#3 Co
mp ar
i
so n[==][===][!=][
<>] g
et_
defi
ned_const
ants(categ.) e
lse
if(expr
) echo“ex
prequal
s1”;
st
ri
ngi s _
str
ing() [
!
==]
[<]
[>]
[<=]
[>=] s
tat
eme
nt#2; d
o{ br
eak;
x
e
ar
ob
r
a
j
e
yi
c
s
ti
_
s
ar
_o
r
a
b
y
je
(
)
ct
() gett
ype(v ar) f
unc
ti
onname E
E
r
r
x
e
o
c
rc
u
o
t
nt
i
on[
r
ol
`
]
[@] F
uncti
ons e
lse
s
tat
eme
nt#3; }
st
at
whil
e
ment
#1;
e(expr)
;
.
.
.
d
efaul
t:
d res
o urcei s
_ re
source
() sett
ype(v ar
,t ype) f
i
xedparamete
r
I
ncrease/ Decrease[++var
][var++] f
uncti
onname _f
u nc
tion(v
ar,v
ar2=“defaul
t”
.)
.
.{.}
.
. ec
ho“def
aul
topt
ion”
;
o
pti
onalpar
ame t
er
NUL Lis_null
() is
set(var
,v ar
2.)
.
. d
escr
ipt
i
o n [--
var]
[var--
] (
(expr
)?expr
_tr
ue:
exp
r_f
al
se) br
eak;
emp t
y(v ar)vari
se mpty
? c
onst
antsoropt
io
ns Logi
cal[and,&&][o
r,||][
xor
][!var
] f
u nct
io
n_exi
sts(functi
on)checkif
funct
ionexi
sts }
o
nlyi
nPHP5 St
ri
ng[ .
][.
=] get_de
fi
ned_funct
ions()showdefi
nedfunct
ions f
or(
ex
pr_
i ; expr
ni
t ;ex
pr_
inc
r)
f
lo
atval
(v )
ar =d oublev
al(
)fl
oatval
ue u nset(var,v ar
2.)del
.
. ete call
_user
_fu
nc(f unc
,p ar
am1..
.)exec.
funct
ion c
onti
nuest
i
ntv
al(v )i Ar
ray[+][==][
===][!
=,<>][!
==] s
tat
ement
#1; opit
erat
ion&g onext
ar,b ase nte
gerval
ue pri
nt_r
(expr ,ret)showvar Ty
pe[ i
nst
anceof] i
s_ c
all
abl
e( var
, syntax
, name) check b
reakstopi
ter
ati
on&f i
ni
shl o
op
s
trv
al(v )st var_
du mp (expr ) f
oreach( expras key=> v
alu
e)
ar r
ingvalue ,e xpr
2..
. s
tat
ement
#1; r
etur
nexprend&r e
turnparam
ge
t_defi
ned_ vars(
)showexi st
entv s g
ar et_r
esource _t
ype(r es) M
at
hf
un
ct
io
ns C
ha
ra
ct
er
ty
peCheckifonlyarepresentintext...
abs(number )absolut
ev al
ue c
typ
e_alnum(t ex
t)alphanu me ri
cchars
S
tr
i
ngs(
sl
as
he
s&q
uot
es
) exp(arg)calc.expone
nt of
e c
typ
e_alpha(tex)al
t phab eti
cc har
s I
n
cl
ud
efil
e
s
s
pec
ial
char
s
fmod(x, y)getmodul oofd i
vis
ion c
typ
e_cntrl
(tex
t)contr
o l
c hars(tab,
esc
..
.)
r
equi
re(fil
e)inc
lud ePHPs cr
i
pt fi
l
e(e r
ror_
fatalifdo
n’t
exist
)
addc
slas hes(string,list
_chars)add\i ncharsof‘l
ist
_chars’i
ns tr
ing & & ;
l
o g
10(ar )base-
g 10l
ogari
thm c
typ
e_digit
(tex
t)dig
its
st
ri
pcslashe s
(st ri
ng)r e
mo ve\i nstri
ngp rocess
edwi t
had dcslashe
“&qu o
s ‘'(
t;(
wit
wi
ho
t
u
hE
tE
NT
NT_
_NOQUOT
QUOTES)
ES)
l
o g
(ar g
,b ase)natur
allogari
thm c
typ
e_graph(tex)vi
t si
blec hars&s pace i
ncl
ude(f i
l
e)incl
ud ePHPs cr
iptfi
le(warni
ngi fdon’
texi
st)
adds
las hes(stri
ng )add\i ncharsinc harsthatneedescape <&l t
; max ( v alues)fi
ndhighestvalue c
typ
e_l
o wer(tex
t)lowercasec hars r
equi
re_once(file)=re qui
re,
b utfi
rstc
he ckiffi
l
ewasinclude
d
st
ri
psl
as he s(str
ing)r e
mo ve\ins tr
ingp r
o c
e ss
edwi t
had ds
lashe s >&g t;
min( v al
ues)findlo
we stval
u e c
typ
e_up per
(tex)upper
t c asec hars i
ncl
ude_once(f il
e)=i ncl
ude,butfi
rstchecki f
fi
lewasincl
uded
ht
mlsp ecial
chars(st ri
ng,s tyl
e ,c harset,d oub_encode)conv er
tspec i
al charsinHT MLe ntiti
es pi(
)getval
ueo fpi c
typ
e_print
(tex)pr
t i
ntablec hars s
et_i
ncl
ud e_p
ath(pat h)s etnewincludep ath
ht
mlsp ecial
chars_ decod e(st ri
ng,s ty
le)revert
htmlspecialcharsefect pow(base, exp)exponent .expr. c
typ
e_pu nct
(tex)=ex
t cep tspace&alphanumeri
c ge
t_i
ncl
ud e_path()returni
ncl
u depath
ht
mlent it
ies(stri
ng ,styl
e,c har s
et,d oub_encode)convert ALLs pec
ial charsinHT MLe nt
it
ies sqrt
(arg )squareroot c
typ
e_space(tex)bl
t anks p aces(t
ab,spac
e,\n.
.
.) r
est
ore_
include_p ath(
)setdef ault
incl
u dep at
h
ht
ml_e ntit
y_deco de(st r
ing,s tyl
e,c harset)rev
e r
thtmlentiti
ese f
ect c
typ
e_xdigi
t(te
xt)hexade ci
mal di
gi
t ge
t_i
ncl
ud ed_fi
l
e s()retur
nallfi
le
sincluded
get
_html _tr
ans l
at i
on_tab l
e(t abl
e ,s ty
le)gettransl
ati
ont ableinhtml spec i
alchars&ht mle nt
it
ies i
s_fi
ni
te
(v al
ue)checkf
ini
teval
ue
)checkNotaNumberP
quot
eme ta(stri
ng )ret
urnae scapes t
ringof metachars.\+*?[ ^]($) i
s_i
nfi
ni
te(v )checki .re
de
fine
dva
rs
nl
2br(st ri
ng)convertnewli
nesin<b r/>b reak styl
e c harse t i
s_nan(val
u
al
e
u
e nfi
ni
teval
U
RLf
un
ct
io
ns
st
ri
p_tag s(str
ing,e xcl
ude )eraseHT ML&PHPt agsENT_COMPAT( 0)“ I SO-8859-1L at
i
n-1 $GLOBALS base64_encode(data)e ncoded at
awi t
hMI MEb as e64
}
ENT
_QUOTES(
1)”&’I
SO-8859-15L ati
n-9(
€,.
.
.)
ENT
_NOQUOTE
S(2) UTF-8Unicode b
ase
_co
nve
rt(num, f
rom, t
o) $_GET base64_decode(data, stri
ct)decodedatae ncod edwi t
hMIMEb ase64
pars
e _
str(st )cr
S
tr
i
ngs(
c
onv
er
si
o
ns&c
r
ypt
) c
c
p
p
866DOSCy
1251Wi nCy
ri
l
l
r
i
i
c
l
li
c d
c
e
on
c
b
v
e
i
rtnumberbe
n(dec)conv
t
we
er
e
t
nb
t
ob
as
i
e
nar
s
y
$_
$_
POST
COOKI
E
$_
REQUE
ST
get_
head er
s
ri
ng
(ur
, ar
l,te
r
a
x
y
t
_key
e
s
at
)f
ear
etc
ra
ywi
hall
HT
t
hk
T
e
ys&v
Phe ade
al
r
u
so
eso
f
fURLqu
aURLrequ
e
e
r
ys
st
tr
i
ng
b
in2hex(str
ing)conver
tbinar
ytohe xad
ecimal
cp1252Wi
KOI8-
RRu
nE
s
si
u
an
r
ope bindec(bin)conver
ttodecimal $_FI
LES get_
me ta_t
ags(f i
l
e,u se_incl
ude_path)extractallme t
atagsinarr
ay
c
hr(asci)r
i et
urnASCII
charact
er BIG5Chinese(Tai
wan) de c
he x
(dec)conv er
ttohexadec. $_ENV htt
p_buil
d_query(formdata, num_ pr
e f
, arg _s
ep )creat
eURL enco
dequ e
ry
o
rd(str
ing)ret
urnASCI
Ival
u eofcharact
er GB2312Chi nese he x
dec(hex)conv e
rttodeci
mal $_SESSI
ON pars
e _
url(url
,c o
mp onent)parseURLandr e t
u r
nitsc omponents
c
onver
t_cyr_st
ring(stri
ng,f r
om, t o)conver
tfr
om Cyr
i
ll
icchars
e t B IG5-
HKSCSChi nese(HongKo
ng) de c
oct(dec)convertt
oo ct
al $_SERVER rawurl
encode(stri
ng)encodestri
ngintorawu rl(
%20, %40..
.
)
Shif
t_J
ISJapane s
e octdec(oct)conv rawurl
decode(st )decoder
}
c
onver
t_u ue
nc ode(stri
ng )uuencodeastri
ng er
ttodeci
mal PHP_ SELFr unnings cript ri
ng a
wu rli
ntostr
ing
EUC-J
PJ apanese
convert
_uu decode (st r
ing)decodeauuencodedst ri
ng de g
2rad (deg)conver
t t
oradi
an GATEWAY_ INT ERF ACECGI s
p ecif
icat i
on url
encode(str
i )URL-
ng e
nco dest
ri
ng
crc
32(st r
ing)calcul
atec yc
li
credundanc ychec ksump olynomi alo fst
ri
ng rad2deg (rad)conver
ttodegree SE
SE
RVE
RVE
R_
R_
ADDRSe
NAMESe
r
r
v
v
e
e
rIPad
rHo st
dre
name
ss url
decode(str
i )URL-
ng d
e c
o dest
ri
ng
cry
p t
(stri
ng,s al)encr
t yptst
ri
ngwi t
hae ncrypt
ionalgori
thm [ 0] salt
hebrev(stri
ng, max_ chars_pe
r_l
ine)conv erthe bre
wt extt
ov is ualtex
CRYPT_STD_ DE
t CRYPT_EXT_DES(
S(0)DE
1)DE
S-
S-
b
b
as
as
e
e
ds
de
t
x
.
t
.
ge
mt
t
r
_
and
ge t
r
max
and
()showmaxr
max ()=but
andv
mtalg
al
or
u
i
t
e
h.
SE
SE
RVE
RVE
R_
R_
SOF
PROT
TWARE Se
OCOLSe r
v
r
v
e
ername&v
rp rotoco l
ersi
on
Serv
erdata D
i
rec
to
ryf
un
ct
io
ns
hebrevc
(st ri
ng, max _chars_per
_li
ne)=&conv e r
tnewlinesto<b r/>\ nCRYPT_MD5MD5encr y
p t
ion SERVE R_ ADMI NAd mi nmai ladd r
e ss chdir(di)changecur
r r
ent di
rect
ory
l
o c
aleconv()ret
urnlocali
zednume ri
c&mo netaryinf
o r
mat i
on CRYPT_BLOWF ISHBl owfis
he ncry
pt r
and (mi n, max)cre
aterandint
. SERVE R_ PORTSe rv
e rPo rt
chroot(di)changecur
r rentrootdi
rect
ory
setl
ocal
e(cat egory
, l ocale.
.
.)setlocaleinfor
mat ion mt_rand (min, max)=butmtal g. SE
RE
RVE
QUE
R_
ST
SI
_
GNAT
ME T
UREV
HOD { GE
er
T
s
/
i
onandVi
POST /PUT
rt
u
/
al
HE
Hos
AD}
t
dir
(di )r
r eturnaninstanceo fDir
ect
o r
yclass(r
ead,re
wi nd&c l
ose)
md 5_fi
l
e(f il
e,r aw_ou t
put)calcul
atemd 5has ho fafi
le s
rand (seed)seedrandgenerato
r REQUE ST _TIMEt ime s tampi nit opend i
r(pat h, contex)openadi
t r
ectoryhandl
e
md 5(str
ing,r aw_output)calcul
atemd 5has hof astr
ing r aw_ output mt_srand (seed)=butmtalg or
it
h. QUERY_ ST RINGGE Tp arams getcwd()getcur r
entwo rkd i
re
ctor
y
sha1_fi
le
(f )cal
FAL SE(0)r
eturn32-chr(40ins ha1) hexnumb er l
cg_value()gener
atepse
ud o-
r
and r
e addir
(handl )
}
il
e,r aw_ou t
p ut cul
ates ha1has ho fafil
e TRUE( 1)ret
urn16-chr(20ins ha1) rawbinary DOCUME NT _ ROOTmai nd i
r e r
eade ntrydi
rect
oryhand l
e
sha1(stri
ng,r aw_ou t
put)calcul
atesha1has ho fas t
ri
ng HTTP_ ACCE PTMI MEt ype
r
e winddir
(handl )r
e ewindd i
rect
oryhand l
e
mo ney_f
ormat (st r
ing, nu mber)format anu mb e
rasc ur
re nc ystri
ng c
eil
(val
ue)ro
undfract
i
onsup HTTP_ ACCE PT _CHARSE TChar set
cl
o s
e di
r(handl e)closed i
rector
yhandle
f
l
oor(val
ue)ro
undfract
i
onsdown HTTP_ ACCE PT _ENCODI NGCo mp ress Cl ientheader
nl_
langi
nfo(i t
em)qu erylanguage&l ocaleinformation (no ne)wi t
hou tdeci
mals HTTP_ ACCE PT _LANGUAGEL ang uag e s
c andir
(di r,s ort
_order,c ontex
t)li
stfil
es&d i
rinsi
des pe
cif
ieddi
r
numb er_
fo r
mat (number ,d ec,p oint,t ho u
s and)f o
rmat nu mb erwith:d ec numberofdeci mals r
ound(val
ue,p )r
r ound‘p
r’d
eci
m. HTTP_ CONNE CT I
ONPe rsi
stent conne ction{Ke ep-
al
ive
/clos
e} dir
name (pat h)retur
nd irpathofafi
lep at
hs t
ri
ng
p oint deci malssep ar
ato
r
t
hou
sandt
hou
s.s
epar
ato
r
HTTP_ HOSTMai nd omai ns erver(nos ub d
omai n) i
s_ d
ir(fil
e)checki fafil
eisad ir
ect
o r
y
sin(arg)sine
S
tr
i
ngs(
sp
li
t
s)
HTTP_ REF ERE RCl ient backwe bpag e
mk dir
(pat hname ,c hmo d,r e
cursi
ve,c ontex)at
t t
emp t
screat
edir
sinh(arg)hyper boli
csine HTTP_ USE R_ AGE NTCl i
entb r
o wse r(he ader)
r
md i
r(pathname ,c ontext)att
emp t
sre moveemp tyd i
r
}
c
hunk_spl
it
(stri
ng,length, end)spli
tinst
ri
ngsoffi
xe d‘l
ength’[76]&putendst
ri
ng[\
n\r
]. as i
n(arg)ar csine HT
RE
TPSSe
MOT E_
cureHT
ADDRCl
T Pp
i
e
r
nt
o
I
t
o
P
col
s
tr
_spli
t
(stri
ng,lengh)s
t p li
ti
narr
a yofst
ri
ngsoffi
xed‘lengt
h’[76] as i
nh(arg )inv.hyperboli
cs i
ne REMOT E_HOSTCl ient Ho sname Cl
t ientdata
e
x
i
p
mp
lo
l
o
d
d
e
(del
e
,s
(del
tr
, ar
i
ng
r
ay
,l
)j
i
mi
oi
t
ni
)spl
nas
i
t
r
t
i
i
nar
ngs
r
e
a
p
yo
ar
f
at
e
s
tr
db
i
ngss
y‘
de
e
l
p
’
ar
al
at
le
e
l
e
db
me
yd
nt
e
so
l
i
mi
f
te
r(
aarr
max
a
y=j
.
o
‘
l
i
i
mi
n()
t
’el
ement
s) c
c
o
o
s
(ar
s
h(ar
)cosi
g
g
ne
)hyper bol
i
cc o s
ine
REMOT
SCRIPT
E
_
_
F
PORTCl
ILENAMERu
ient Po
nni
r
t
ngs e r
ve rscriptactual
ly
M
is
ce
ll
a
neo
usf
un
ct
io
ns
s
trt
ok(str
i
ng,token)spli
tas t
ri
ngintoasmall
ersubst
rings(to
ke ns) ac os
(ar g)arcc osi
ne PATH_ TRANSL AT ED =SCRI PT _FI
L ENAME connec t
i
on_ ab or
ted (
)checkwhet hercli
e ntdisconne ct
ed
ac os
h(ar g)in v
. h
ype r
b ol
icco s
ine SCRI
RE
PT
QUE
_
ST
NAMESc
_URIURI
ri
f
p
r
t
o
p
mr
ath(
e
r
qu
e
e
lat
st
i
v
(
et
si
or
mil
oo
art
t
)
oSCRI PT_
NAME ) connec t
i
on_ status()retur
nc onnecti
ons tatus:(0)NORMAL(1)ABORTED(2)T
IMEOUT
tan(arg)t angent exi
t( st )out
S
tr
i
ngs(
st
ri
n
g&c
ha
rso
pe
ra
ti
on
s) tanh(ar g)hyper bol
i
ct ang e
nt
PHP_
PHP_
AUT
AUT
H_
H_
DIGE
USE
STHT
RUs er
TPDi
namei
ge s
t
nau
He
t
ad
hor
e
iz
r(
wi
ati
o
t
n
hAp ac
heasmo d
ule)
eval
atus
(code_st
r)ev
p
al
u
u
tme
ates
s
t
s
r
ag
i
e(orre
ngasPHPc
turni
od
nt
e
ege rvalue)&fini
shs c
ript=d ie
()
P
OSI
XE
xt
en
dedRe
gE
xp F
i
le
sy
st
em(
ba
si
cf
un
ct
io
ns
) ne
pr
x
e
v
t
(mat
(mat
)gonextel
)gopr eve
e
l
e
me
me
nt
nt
i
nar
inar
r
a
r
a
yandr
yandr
e
e
t
u
t
u
r
r
ni
t
nit
e
reg(regexp
,s t
ri
ng ,reg_grou
p)sear chfo
rmatchregex
pp at
t e
rninst
ri
ng( &grouppare
nthes
iz
ed) base name (pat h, su f
fix)r e tur
nf il
e nameo fap athf i
le
name res
e t
(mat )gofirs
t el
e me ntinar ra
yandr etu
rnit
e
regi
(regexp,str
ing,r e
g_ g
roup)=butcase-i
nsensi
ti
ve chgrp (f il
e,g rou p)changef i
leg rou p=l chg r
p (
) f
o rli
nkfile
e
reg_r
eplace(reg e
xp,r epl
ace,s t
ri
ng )sear
chregex
p&r eplacematchtextwit
h‘re
place’ f
l
ags s
ort
chmo d (f i
le, mo de)changef i
lemo de SORT
_ASC(0) SORT_REGULAR(0)
e
regi
_r
e pl
ace (regexp
,r eplac
e,s tr
ing)=butcase-i
nsens
iti
ve chown(f il
e ,u se )changef
r ileowne r=lc ho wn( )
fo rl
inkf i
l
e SORT
_DESC(1) SORT
_NUMERIC(1)
s
pli
t
(r )spl
s
pli
t
i(r
e
g
eg
e
x
e
p
x
,s
p,s
t
r
t
i
ng
r
i
,l
ng,l
i
mi
i
mi
t
t
i
tst
ri
ngi
)=butcase-
nt
i
oar
nse
r
a
ns
i
yb
t
iv
e
yaregexp
gr
ep_fl
ags
c
d
o
i
p
s
y
k
(sr
_fre
c
e
,d
_s p
st
ac
,c
e
ont
(di
e x
t
)r
r
)copyaf
etu rna v
i
ai
l
e
lab l
es p ac eind isko fdi
r=d i
skfreesp ace()
A
rr
ay
sso
rt
met
ho
ds SORT
_
SORT
_
ST
L
RI
NG(
OCALE
2)
_
ST RI
NG(
3)
s
ql_
regcase(stri
ng)createaregexpf
o rcasei
nsens
it
ivematch PREG_GREP_I
NVE
RTnotmatc
h disk_to tal_spac e(di r)r e tu rntotal sizeo fd isko fd i
r arr
ay_mul
ti
so rt
(mat ,s or
t, mat 2.)sor
.
. t severalar r
.ormu l
ti
di
m. ar
r
f
il
e _ex i
s ts(f )checki arr
ay_r
ever
se (mat ,s avekeys)arraywithe l
eme ntsi nrev.o
rder
P
er
lC
omp
at
ib
l
eRe
gE
xp f
il
e _ge t_co nt
i
l
e
e
nts(f ile
f
,f
fi
leo
lag
rd
s
i
,c
re
o
xis
nt
t
e
s
xt,o f
fset, max len)g etcont ent f
il
eintostr
ing asor
t(mat,f l
ags)sortarr
ayino rder
,mai ntaininde x
p
reg
_g r
ep (regexp
,i nput,g rep_f
l
ag s)returnarr
a yentr
i
esthatmatchthepat t
ernr
egexp f
il
e _pu t_ conte nts(f i
le,d at a, f l
ag s,c o ntext)putcont ent s
tri
ngi ntoaf il
e arso
rt(mat,f l
ags)sortarr
ayinre v
erseorde r,mai ntainindex
p
reg
_mat ch(r egex
p,s t
ri
ng , matc
h, f l
ags ,offse)per
t f
ormregexpmatch f
il
e (f il
e ,flags ,c ontext)getcont e nt f
il
ei ntoar ray ksor
t(mat,f l
ags)sortarr
ay(forkey)i
no rde r(maint ainassoc)
f
il
e si
z e(f il
e )at t
e mp t
sc re ated ir fi
lea t
ime ( f
i
le ) getl
a s
taccess krs
ort(mat,f l
ags)sortarr
ay(f
o rkey)i
nr everseo rde r(maint
ainass
o c
)
p
reg
_mat ch_all
(r egexp,s tr
ing, match, f l
ags,o f
fset)=butiffo
und,continues
earch
p
reg
_qu ote(str
ing,d el)addslashregexpc har
s. \+*?[ ^
]$( )
{ }
=! <>|: r
e name (ol d, ne w, c o nte xt)r e nameaf il
eo rd ir f i
lemt ime (f ile)getlastmo di
fie
d nats
ort(mat)sortinnatur
alorder(maintainas soc)
s
t at
(f il
e)gi veinformat i
o nab ou taf i
le fi
leg r
o up(f i
le )getgr oup natc
aseso
rt(mat )sorti
nnaturalorder(
mai ntai
nas soc )
&noc asesensi
t
ive
p
reg
_replace(re g
exp,r eplace,stri
ng ,limit,times )perf
orm aregex
pse arch&rep
lace fi
leinod e(f i
le)geti node rso
rt(mat,flags)sortar
rayinrevers
eo rder( maxt omi n)
p
reg
_replace_call
bac k(r egexp,c all
back, str
ing,l i
mit,times)=butusi ngacal
lbackf
unc
. t
e mp nam(di r,p r
e f
fi)cr
x e at eu niqu efil
e name
fi
leo wne r(f ile)getowner
p
reg
_spli
t(r e
gexp,s tr
ing,l i
mit,sflags)splits
tri
ngb yaregul
arexpr
essi
on f
nmat c h(wi l
d card,s t
r,f lag s)mat chfi
le name s shuf
fl
e(mat)r andomizeelement si
nar r
ay
p
reg
_last
_ er
ror(
)r et
urne r
rorcodeoflastPerlComp at
i
b l
eRe gE
xp glob(wi ldcard,f l
ags) f
indp athname smat c hwi l
d c. f i
lep erms (f i
le )getpermi s
sio
n sor
t(mat,flags)sortarr
ay(mint omax )
fl
ag s
l
i
nk (t arget,l i
nk )cr eateahar dli
nk fi
letype (f i
le)gett ype(f
if
o ,
dir
..
.) usor
t(mat,f unc)sortarr
aywithc us
tomf unc .
s
fl
ags PRE
G_
PRE
G_
PAT
SE
T
T
_
ERN_
ORDE
ORDE
R(1)
R(
0)
s
y mlink (targ et,l i
nk )cr e at eas y mb ol
iclink is
_ dir(f i
le)checki fisadirec
tory uksor
t(mat,f unc)sortarr
aywi t
hc ust
omf unc .
(re s
p ectkeys)
PRE
G_
PRE
G_
SPL
I
SPL
I
T
T
_
NO_
_
DEL
I
EMPT
M_
Y(
CAPT
0)
URE(1) PRE
G_OFFSET_CAPT
URE(
2) l
i
nk info (pat h)g etinformat ionab o ut ali
nk is
_ exe cuta ble ( fi
le) =exec.f
il
e uasor
t(mat,f unc)sortarr
aywi t
hc ust
omf unc .(
mai nt
ainassoc)
PRE
G_SPL
IT_
OFF
SE T
_CAPTURE(2) r
e adlink (pat h)r et
u r
nt arg e to fas ymb oli
cl ink is
_ fi
le(f il
e)checki f i
sare g.
fi
le
r
egu
lare
xpr
ess
ion r
egu
lare
xpr
ess
ion(
2) r
e al
p at h(pat h)r eturnab so l
u tere al patho f l
ink is
_ l
in k( fi
le) check i
fisali
nk A
rr
ay
sass
et
s(
di
ffe
re
nc
e&i
n
ter
se
ct
)
\e scape (st
arts
ub pat
ter
n \
danydecimal d
igi
t \
vanyv er
ti
calwhi t
espacechar mo ve _u pload e d_ f
il
e (f i
le ,d st)mov eu ploadf ie i
l s
_ read ab l
e (f i
le)=r e
adf i
l
e
ar
ray
_d i
ff
(mat, mat2, mat3.
.)di
. f
fer
enc ebetweenmat
^s tar
to f
s ubj
e ct )endsubpatt
ern \
D an
ycharno tadecimaldig
it\
Vanyno tver
ticalwhit
espace.
.
. parse _ini_fil
e (f il
e,s ec t
io ns )par sea. ini f
ile is
_ up l
o ade d_ f i
le(f i
le)=upload
$e ndo fsubject ?quanti
f
iermini
mi zer(
0o r1) \
hhori
zontalwhi
tespacechar \
w anywo r
dc haract
er is
_ wr i
tab l
e (f il
e)=is_writ
eable ar
ray
_inte
rsec
t(mat, mat2, mat3..
.)inters
e c
tbetweenmat
.an ycharact
e r(e
xcep tnewl
i
ne)
*0o rmo r
equanti
fier \
Hnothori
z o
ntalwhit
espace.
..\
W any“non-wo r
d ”c
haract
er pathinf o(f il
e,o p t
ions)r etu rninfoab ou tfil
ep at
h ar
ray
_? _
key(mat, mat2, mat3.
.).
. .
.betwe e
nmat (keysensi
ti
ve)
|s tar
to f
alternati
veb r
anch +1o rmo r
equanti
fier \
sanywhitespacechar \
nnewl i
ne r
e adfile(f il
e,u se_i
nc ,c o nte x)out
t putsaf i
le optio
ns ar
ray
_? _
ukey(mat, mat2, mat3.
..
,f unc)=butwi thcusto
mf unc.
[startcharclassdefini
tio
n {st
artmin/maxqu anti
fi
er \
Sanyno t
whi t
espacechar \ rcar
riageret
u r
n t
o uch(f i
l
e,t i
me , atime )upt imet imeo ffile (
def
PAT
au
HI
l
t
NF
)
(0)r
O_DI
etur
nal
RNAME(
lel
1)
ement
s
ar
ray
_u di
ff
(mat, mat2, mat3.
..
,func)di ffwit
hcustomfunc
]endc harc l
assd ef
init
i
o n }endmin/maxqu antif
i
er \
ttab umas k (mask)changet hec u r
rent u mas k PATHI
NFO_BASENAME( 2) ar
ray
_u i
nte
rse
ct(mat , mat
2, mat3...
,f unc)inte
rsectwit
hcusto
mf unc.
i
ns
^ne
qu
g
ar
at
eb
e(i
r
ac
fi
k
sfi
e
r
s
t
s
t
.
.
c
.
har)
unli
nk (f i
le,c ontext)del e teaf i
le PATHI
NFO_EXTENSION( 3) ar
ray
_? _
assoc(mat, mat2, mat3.
.)di
. f
fb et
weenmat (i
ndexsensi
ti
ve)
PAT
HINF
O_F
ILE
NAME(
4)
-charrang ei
nd ic
ate ar
ray
_? _
uassoc(mat, mat2, mat3.
..
,f unc)=butwi t
hcusto
mf unc.