Setting the Stage
Just caught wind of this #CarolsInCode thing…this is my try… wink pun intended…
class reindeer
{
public $nose = array('black' => 'color',
'dull' => 'sheen', false => 'luminescent');
public laugh()
{
for(i = 0, i < 2, i++)
{
echo 'ha';
}
}
public call_names()
{
echo 'You suck!';
}
}
$rudolph = new reindeer();
$rudolph->$nose = array('red' => 'color',
'very shiny' => 'sheen', true => 'luminescent');
$other_reindeer = array('Dasher','Dancer','Prancer',
'Vixen','Comet','Cupid','Donner','Blitzen');
foreach($other_reindeer as $deer => $key)
{
$other_reindeer[$key] = new reindeer();
}
And I’m officially a dork. Merry Christmas!