<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> getdate.php </title>
<meta charset="UTF-8">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
</head> <body>
<?php
$t=time();
var_dump($t);
$arry=getdate($t);
var_dump($arry);
echo '<hr>';
$today = getdate();
print_r($today);
?>
</body>
</html>
int 1462358642
array
'seconds' => int 2
'minutes' => int 44
'hours' => int 10
'mday' => int 4
'wday' => int 3
'mon' => int 5
'year' => int 2016
'yday' => int 124
'weekday' => string 'Wednesday' (length=9)
'month' => string 'May' (length=3)
0 => int 1462358642
Array ( [seconds] => 2 [minutes] => 44 [hours] => 10 [mday] => 4 [wday] => 3 [mon] => 5 [year] => 2016 [yday] => 124 [weekday] => Wednesday [month] => May [0] => 1462358642 )
getdate.php var_dump($arry);
转载上一篇:uploadFile2.php
下一篇:分组模式 预定义字符和字符类
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Java Thread Dump文件分析
Java Thread Dump文件分析
java 堆栈 Java -
PHP 实现var_dump函数
PHP 实现var_dump函数
PHP dump var -
var_dump()函数
var_dump()方法是判断一个变量的类型与长度,并输出变量的数值,如果变量有值输的是变量
php 数据类型 递归 数组