PHP Classes


Recommend this page to a friend!
  Classes of Peter Kahl   PHP Season of the Year   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Season of the Year
Get the names of the seasons in several languages
Author: By
Last change: Update
Updated the language count
Added Norwegian
Date: 4 years ago
Size: 1,487 bytes


Class file image Download

Season names in 19 languages

Downloads License If this project has business value for you then don't hesitate to support me with a small donation.

Translates name of season into 19 languages and scripts.

  • Arabic (????)
  • Czech (?e?tina)
  • German (Deutsch)
  • Danish (dansk)
  • English GB
  • English US
  • Spanish (Español)
  • French (français)
  • Hebrew (???????)
  • Italian (italiano)
  • Japanese (???)
  • Dutch (Nederlands)
  • Norwegian (norsk)
  • Portuguese (Português)
  • Russian (???????)
  • Slovak (sloven?ina)
  • Chinese simplified (????)
  • Chinese traditional (????)
  • Welsh (Cymraeg)


usee peterkahl\SeasonInfo\SeasonInfo;

echo SeasonInfo::getName('autumn', 'en-us'); # fall

echo SeasonInfo::getName('autumn', 'en-gb'); # autumn

echo SeasonInfo::getName('spring', 'it');    # primavera

echo SeasonInfo::getName('spring', 'fr');    # printemps

echo SeasonInfo::getName('spring', 'ru');    # ?????

echo SeasonInfo::getName('spring', 'cy');    # gwanwyn

echo SeasonInfo::getName('spring', 'zh-cn'); # ??

echo SeasonInfo::getName('winter', 'ja');    # ?