2021-12-07 13:27
105
0
0
0
篮球
足球
乒乓球
排球
2021-12-07 13:27
111
0
0
0
method_exists
method_exists -- 检查类的方法是否存在
描述
bool method_exists ( object object, string method_name )
如果 method_name 所指的方法在 object 所指的对象类中已定义,则返回 TRUE,否则返回 FALSE。
opendir
o
2021-12-07 13:27
169
0
0
0
1,microtime -- 返回当前 Unix 时间戳和微秒数
1. 用 microtime() 对脚本的运行计时
2,list
list -- 把数组中的值赋给一些变量
说明
void list ( mixed varname, mixed ... )
像 array() 一样,这不是真正的函数,而是语言结构。list(
2021-12-07 13:27
138
0
0
0
php函数 要看的
strtoupper
strtoupper -- Make a string uppercase
strtolower
strtolower -- Make a string lowercase
is_file
is_file -- 判断给定文件名是否为一个正常的文件
dir
dir -- directory
2021-12-07 13:27
100
0
0
0
php常用函数 要看的
截取指定长度字符
function cutstr($string, $length, $dot = ' ...') {
if(strlen($string) 1 && !$simple ? '‹‹' : '');
for($i = $from; $i $page && !$ajaxta
2021-12-07 13:27
92
0
0
0
base类相关函数 要看的
time
time -- 返回当前的 Unix 时间戳
例子 1. time() 例子
$nextWeek = time() + (7 * 24 * 60 * 60);
// 7 days; 24 hours; 60 mins; 60secs
echo 'Now: '. date('Y-m-d') ."n";
2021-12-07 13:26
92
0
0
0
header
header -- 发送一个原始 HTTP 标头
header("Location: http://www.example.com/"); /* 重定向浏览器 */
/* 确保重定向后,后续代码不会被执行 */
exit;
?>
is_writable
is_writable -- 判断给定的文件名是否可写
例子
2021-12-07 13:26
92
0
0
0
PHP函数iconv()编码转换