New Methods
Several new methods were introduced in 5.3.0:
Date/Time:
-
DateTime::add()
- Adds an amount of days, months, years, hours, minutes and seconds to a
DateTime object.
-
DateTime::createFromFormat()
- Returns a new DateTime object formatted according
to the given format.
-
DateTime::diff()
- Returns the difference between two DateTime
objects.
-
DateTime::getLastErrors()
- Returns the warnings and errors from the last date/time operation.
-
DateTime::sub()
- Subtracts an amount of days, months, years, hours, minutes and seconds
from a DateTime object.
Exception:
-
Exception::getPrevious()
- Retrieves the previous exception.
DOM:
PDO_FIREBIRD:
Reflection:
SPL:
-
SplObjectStorage::addAll()
- Add all elements from another SplObjectStorage object.
-
SplObjectStorage::removeAll()
- Remove all elements from another SplObjectStorage object.
XSL: