date - Check the timestamp value is in current month or not in PHP -
i want know, how check timestamp(any month, year, date) present in current month or not in php?
for.eg 1456132659 example timestamp indicates last month date. want condition
if(1456132659 in current month) { //true } else { //false } how can this?
simply compare month -
if(date('m', 1456132659) === date('m')) { //your code goes here }
Comments
Post a Comment