php function minimalist version

explode()
implode()
substr()
str_replace()
str_ireplace()
strchar()
strrchar() strstr()
strpos()
stripost()
strlen()
count()
array()
array_combine()
range()
compact()
array_fill()
array_chunck()
array_merge()
array_slice() 取值 返回
array_splice() 取值 替换
array_diff() 差集
array_intersect() 交集
array_search()
array_sum()
array_key_exists()
in_array()

key()
current()
next()
prev()
end()
reset()

list ($ a, $ b, $ c) = $ array; variable assignment with a set of elements in an array

the array_shift ()
array_unshift ()
the array_push ()
array_pop ()
shuffle () array shuffling upset
array_flip () key inversion
the array_keys ()
arrya_values ()
array_reverse () inverted
array_count_values ()
array_rand ()
array_unique ()
Sort () sequential ordering
rsort () in reverse order

fopen()
fread()
fwirte()
fclose()
file_exist()
filesize()
is_readable()
is_writeabe()
is_excuteable()
filectime()
filemtime()
fileatime()

feof () is completed
fgets () line of
file () to read a file into an array, each row of the array element is file
file_get_contens ()
Flock ()
dirname ()
basename ()
pathinfo ()
opendir ( )
readdir ()
closedir ()
rmdir ()
unlink ()
Copy ()
the rename ()
is_uploads_file ()
move_uploads_file ()
Time ()
DATE ()
strtotime ()
date_default_timezone_set ()
microtime () returns the current unix timestamp with microseconds call

array_map () callback function will be applied to the given array unit returns an array, each array element of the array are (of arr1) inside each element through the callback function (callback) of the process.

<?php
function cube($n)
{
    return($n * $n * $n);
}

$a = array(1, 2, 3, 4, 5);
$b = array_map("cube", $a);
print_r($b);
?> 

Guess you like

Origin www.cnblogs.com/djwhome/p/12521695.html
Recommended