While reading the PHP manual for the strtotime() function I got to a "Note" with a very poor explanation - saying this:
Note:
Using this function for mathematical operations is not advisable. It is better to use DateTime::add() and DateTime::sub() in PHP 5.3 and later, or DateTime::modify() in PHP 5.2.
What is meant by the "mathematical operations"?
...of course I know what mathematical operations are in general, but in what context is this meant?
And why it is not "advisable"?
Could anyone show me an example of use where it "is not advisable" and explain why?
Thanks.