O'Reilly logo

PHP Programming with PEAR by Stoyan Stefanov, Carsten Lucke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with the Calendar Package

If you search for PHP-based calendar utilities on the Web you will find lots of solutions. Some are good, others are not. However, in most cases you will experience some constraints. Several libraries have month/day names hard-coded or are tied to a specific output format.

PEAR::Calendar helps you generate calendar structures without forcing you to generate a certain type of output or depending on a special data store as back end. It simplifies the task of generating tabular calendars and allows you to render whatever output you like (e.g. HTML, WML, ASCII).

The package provides classes representing all important date entities like year, month, week, day, hour, minute, and second. Each date class can build subordinated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required