getBirthdayRange

Description

Finds all the birthdays in the specified range of days.

Syntax

array getBirthdayRange (string $earliest_date, string $latest_date)



Parameter $earliest_date

Expected type: String
Description: The earliest date of the range, in YYYY-MM-DD format



Parameter $latest_date

Expected type: String
Description: The latest date in the range, in YYYY-MM-DD format



Return value

Expected type: Array of arrays
Description: Returns an array of arrays containing information about all the birthdays in the given range.


Notes

  • earliest_date and latest_date are inclusive, and should both be in the YYYY-MM-DD format.
  • Works with birthdays set for no year, or any other year, and respects month and year boundaries.
  • Returns an array of days, each of which an array of birthday information for the context.
Advertisement: