Dear List,
I've been struggling with this for some time now and can't for the life of
me figure out why the output is "GeorgeGeorge" and not "GeorgeBush"
<?php
class StaffDetails {
var $staff_name;
var $staff_surname;
function StaffDetails() {
$this->$staff_name="George";
$this->$staff_surname="Bush";
}
function StaffName() {
echo $this->$staff_name;
}
function StaffSurname() {
echo $this->$staff_surname;
}
}
$sd = new StaffDetails();
$sd->StaffName();
$sd->StaffSurname();
?>
References to links or tutorials most welcome :)
Thanks in advance.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php