I am new to PHP and am trying to write a very simple class:
<?php
class Course {
private $credits;
public function getCredits() {
return $this->credits;
}
}
?>
the problem is when I load this in a browser, I see:
credits; } } ?>
so it looks like the browser is echoing all that follows "this->" - is there something I need to configure in php.ini? thanks for any help!