Function __global->get_member_dob_details

Definitions

sources/cns_general.php

  • Get details of a member's date of birth / birthday / age.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$member_id MEMBER No No required parameter N/A N/A The member to check

Returns

  • A tuple: label to refer to with, written date string, timestamp with censoring applied if needed, timestamp without censoring, age or null if censored (null: none)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get details of a member's date of birth / birthday / age.
 *
 * @param  MEMBER $member_id The member to check
 * @return ?array A tuple: label to refer to with, written date string, timestamp with censoring applied if needed, timestamp without censoring, age or null if censored (null: none)
 */

function get_member_dob_details(int $member_id) : ?array