摘要:
<?PHP $a = "hello";$b = &$a;unset( $b );echo $a; // 输出 helloecho $b; // 报错$b = "123456";echo $a; // 输出 helloecho $b; // 输出 123456echo "<hr />";$a = "h 阅读全文
摘要:
<?PHP /*** 传入日期格式或时间戳格式时间,返回与当前时间的差距,如1分钟前,2小时前,5月前,3年前等* @param string or int $date 分两种日期格式"2013-12-11 14:16:12"或时间戳格式"1386743303"* @param int $type* 阅读全文