<?
class Person {
public $FirstName = "B";
public $MiddleName = "T";
public $LastName = "M";
private $Password = "asdfasdf";
public $Age = 29;
public $HomeTown = "LA";
public $FavouriteColor = "Purple";
public function outputVars( ) {
foreach($this as $var => $value) {
echo "$var is $value\n";
}
}
}
$bill = new Person( );
$bill->outputVars( );
?>