Documentation

Calendar
in package

Renders a calendar

Table of Contents

Methods

render()  : string
Renders calendar HTML

Methods

render()

Renders calendar HTML

public static render(int $month, int $year, callable $callback[, array<string|int, mixed>|int|null $options = null ]) : string
Parameters
$month : int

1 through to 12 (Jan - Dec)

$year : int
$callback : callable

Render inner HTML for the cells

$options : array<string|int, mixed>|int|null = null

[week_begins,day_format,show_month,month_format] or int for backwards compatibility

Return values
string —

HTML

On this page

Search results