How to perform a function/task on the first day of the month only?
<p>I need to execute a piece of code <strong>ONCE every first day of the month only</strong>. For simplicity, let's say i want to <strong>echo</strong> a string. With the help of built-in PHP functions determining the first/last day of the month, and the current/next month is a no-brainer. </p>

<p>My initial plan of action is to store the current and next month in some variable. And once the first day of the new month hits, only then that <strong>echo</strong> should be executed.</p>

<p>My problem lies in, for one, I cannot find a way to actually store these variables (something like having them as constants) for me to able to compare them.</p>
