Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

get_birthday_members

Usage: array get_birthday_members ([int day[, int month]])
Purpose: Gets members born on a date.
Availability: IPB SDK 1.0

Returns an array of members who have they're birthday on the day day of the month month. If day or month is not specified, today's date is used.

The information returned on each member is equivilent to using the get_advinfo function on each member.

/* Displays list of members with birthdays today */ $birthdays = $SDK->get_birthday_members();
echo '<ul>';
foreach ($birthdays as $i) {
echo '<li>'.$i['name'].'</li>';
}
echo '</ul>';

/* Displays 1 members born on 22/5 */
echo count($SDK->get_birthday_members(22,5));
echo ' born on 22/5';


User Contributed Notes

There are currently no user contributed notes for this page.

Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net