Get the Year/Month/Day from a datetime in php?

前端 未结 3 751
忘掉有多难
忘掉有多难 2021-01-31 06:57

I used date(\'w\', timestamp) and date(\'w\', timestamp) to know the day, date(\'n\', timestamp) for months, etc.

Now I\'m using d

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-31 07:42

    Try below code if you want to use php loop to display

    
       
    
    
      
    
    
      
    
    

提交回复
热议问题