Common PHP Functions and the SparForte Equivalent
Arrays
PHP SparForte Equivalent
array_sum arrays.sum
asort arrays.bubble_sort
arrays.heap_sort
count arrays.length
shuffle arrays.shuffle
rsort arrays.bubble_sort_descending
arrays.heap_sort_descending
Numbers
PHP SparForte Equivalent
abs abs
acos numerics.arccos
acosh numerics.arccosh
asin numerics.asin
asinh numerics.asinh
atan numerics.atan
atanh numerics.atanh
base_convert #base#
put
bindec #base#
put
ceil numerics.ceiling
cos numerics.cos
cosh numerics.cosh
decbin #base#
put
dechex #base#
put
decoct #base#
put
deg2rad use appropriate cycle
exp numerics.exp
floor numerics.floor
fmod numerics.remainder
hexdec #base#
put
log10 numerics.log
log numerics.log
max stats.max
numerics.max
min stats.min
numerics.min
octdec #base#
put
pi numerics.pi
pow **
rad2deg use appropriate cycle
rand numerics.random
numerics.rnd
round numerics.rounding
numerics.unbiased_rounding
sin numerics.sin
sinh numerics.sinh
sqrt numerics.sqrt
tan numerics.tan
tanh numerics.tanh
Strings
PHP SparForte Equivalent
chr strings.val
substr_count strings.count
echo put
put_line
new_line
explode strings.field
strings.lookup
strings.csv_field
strings.delete
strings.insert
implode strings.replace
strings.csv_replace
strings.delete
strings.insert
ltrim strings.trim
md5 strings.md5
rtrim strings.trim
ord strings.pos
printf put
strpos strings.index
str_pad strings.head
str_repeat *
str_replace strings.replace
strings.replace_slice
strings.delete
strings.insert
strstr strings.pos
strchr strings.pos
substr strings.head
strings.tail
strings.slice
strings.element
strlen strings.length
trim strings.trim
strtolower strings.to_lower
strtoupper strings.to_upper
locateconv strings.to_basic
ucwords strings.to_proper
wordwrap strings.split
|