简单教程
提交运行
代码编辑器:
<?php $sun_info = date_sun_info(strtotime("2013-01-01"),31.7667,35.2333); foreach ( $sun_info as $key=>$val) { echo "$key: " , date("H:i:s",$val) , "<br>"; }
运行结果: