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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -