Convert time to timestamp
<html> <meta charset="utf-8"/> <body> <?php date_default_timezone_set("Asia/shanghai"); echo "当前时间为:".date('Y-m-d H:i:s'); echo "<br/>转换成时间戳为:".time(); ?> </body> </html>
<html> <meta charset="utf-8"/> <body> <?php date_default_timezone_set("Asia/shanghai"); echo "当前时间为:".date('Y-m-d H:i:s'); echo "<br/>转换成时间戳为:".time(); ?> </body> </html>
Students who have watched this course are also learning