作者文章
It Is My First E Article
Today was very cold & The Damn Railway Bureau!
Hey guys and the only beautiful and sexy girl,I love you all~ Tonight I have maked a logo and uploaded it to our site.If you have something to suggest , please tell me, I will change it.
This is my first English article though my English is poor. First I will thank daniela,the beautiful and sexy girl,second I thought I was very lucky to met you daniela. The blog is our team's home,please love our home and'Chang Huijia Look'.
From today I will update the article of our blog per 2/3 days, the article is about IT Technology,my mood and so on...
I hope eric and hlex can write some article to our blog.Hey! Where R U?
OK,that 's all! This was Chunk's writing,good luck!
根据日期获得对应的星期
发布者: Kobe 分类: PHP & MYSQL 发布日期:2010年21月
今天处理了一个NetOffice的问题,是如何显示相关日期对应的星期几的问题。
之前的函数不清楚哪个地方出错,所以又重写了一个。一定要熟悉date()函数如何去使用。
function getWeekNew($myMonth,$myDay,$myYear){ $arr_date = array("星期日","星期一","星期二","星期三","星期四","星期五","星期六"); if(checkdate($myMonth,$myDay,$myYear)){ if(strlen($myMonth) == 1 ) { $myMonth = "0".$myMonth; } $mydate = $myYear."-".$myMonth."-".$myDay; $myweek = $arr_date[date('w',strtotime($mydate))]; return $myweek; } else { return "Wrong Date!!"; } }
