<?php
$date
=
date
(
"Y-m-d"
);
$date
=
date
(
"Y-m-d H:i:s"
);
$str
=
" sdaf sd "
;
$len
=
strlen
(
$str
);
$str
=implode(
"-"
,
array
(
"a"
,
"b"
,
"c"
));
$array
=
explode
(
"a"
,
"asddad addsadassd dasdadfsdfasdaaa"
,4);
$str
=ltrim(
"a asd "
,
"a"
);
$str
=rtrim(
" asd "
);
$str
=trim(
" sdsdfas "
,
"a"
);
$str
=
substr
(
"abcdefgh"
,0,4);
$str
=
str_replace
(
"a"
,
""
,
"abcabcAbca"
);
$str
=
strtoupper
(
"sdaf"
);
$str
=ucfirst(
"asdf"
);
$str
=htmlentities(
"<br>"
);
$int
=substr_count(
"abcdeabcdeablkabd"
,
"ab"
);
$int
=
strpos
(
"asagaab"
,
"ab"
);
$int
=
strrpos
(
"asagaabadfab"
,
"ab"
);
$str
=
strstr
(
"sdafsdgaababdsfgs"
,
"ab"
);
$str
=
strrchr
(
"sdafsdgaababdsfgs"
,
"ab"
);
$str
=
addcslashes
(
"abcdefghijklmn"
,
"akd"
);
$str
=
str_pad
(
"abcdefgh"
,10,
"at"
,0);
$int1
=
strcmp
(
"b"
,
"a"
);
$str
=number_format(1231233.1415,2,
"d"
,
"a"
);
$arr
=
array
(
"k0"
=>
"a"
,
"k1"
=>
"b"
,
"k2"
=>
"c"
);
$int
=
count
(
$arr
);
$bool
=in_array(
"b"
,
$arr
);
$array
=
array_keys
(
$arr
);
$bool
=
array_key_exists
(
"k1"
,
$arr
);
$array
=
array_values
(
$arr
);
$key
=key(
$arr
);
$value
=current(
$arr
);
$array
=each(
$arr
);
$value
=next(
$arr
);
$value
=prev(
$arr
);
$value
=reset(
$arr
);
$value
=
end
(
$arr
);
$int
=
array_push
(
$arr
,
"d"
,
"dfsd"
);
$int
=
array_unshift
(
$arr
,
"t1"
,
"t2"
);
$value
=
array_pop
(
$arr
);
$value
=
array_shift
(
$arr
);
$array1
=
array_pad
(
$arr
,10,
"t10"
);
$array
=
array_unique
(
$array1
);
$int
=sort(
$array
);
$int
=rsort(
$array
);
$array
=
array_combine
(
array
(
"a"
,
"b"
,
"c"
,
"d"
,
"e"
),
$arr
);
$array
=
array_merge
(
$arr
,
array
(
"a"
,
"b"
,
"c"
));
$array
=
array_slice
(
$arr
,2,1);
$array
=
array_splice
(
$arr
,2,1);
$array
=range(3,9,2);
$bool
=shuffle(
$arr
);
$int
=
array_sum
(
array
(
"a"
,2,
"cssf"
));
$array
=
array_chunk
(
array
(
"a"
=>
"a"
,
"b"
,
"c"
,
"d"
,
"e"
,
"f"
,
"g"
,
"h"
),2,true);
$arr
=
array
(
'k1'
=>
'val1'
,
'k2'
=>
'val2'
,
'k3'
=>
array
(
'v3'
,
'v4'
));
echo
$encode_str
= json_encode(
$arr
);
$decode_arr
= (
array
)json_decode(
$encode_str
);
var_dump(
$decode_arr
);
?>