$date = new DateTimeZone('America/New_York'); $abbreviations = $date->listAbbreviations(); print_r($abbreviations);
$abbreviations = DateTimeZone::listAbbreviations(); print_r($abbreviations);In this example, the static listAbbreviations() method is called on the DateTimeZone class directly, without creating a DateTimeZone object first. The resulting array is outputted to the screen using the print_r() function. This feature is part of the PHP core library.