Skip to content

Instantly share code, notes, and snippets.

@thomaslarsson
Created July 16, 2012 13:58
Show Gist options
  • Save thomaslarsson/3122868 to your computer and use it in GitHub Desktop.
Save thomaslarsson/3122868 to your computer and use it in GitHub Desktop.
User-Member composition illustration with print_r()
User object
{
private user_id = 1;
private user_email = 'thomas@juvenorge.com';
private user_access_key 'ergdvzwezsfgdzesgeszwsfd';
private user_access_level = '1'; // Administrator
private user_last_active '2012/07/16 16:00';
private member = Member object {
private member_id = 1; // Could be 2, 5, 72, etc
private date_of_registration = ''; // some date
private date_of_birth = '1990/10/27';
private place_of_birth = 'Oslo';
private gender = 'M';
private first_name = 'Thomas';
private last_name = 'Larsson';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment