Why the heck does this:
<?php
class Quote
{
var $quote = "Bob's";
var $author = "Shoes";
function Display() {
echo '
<div class="quotes">'.$this -> $quote.'<br>
<strong>-'.$this -> $author.'</strong>
</div>
';
}
}/ END OF CLASS /
?>
When called by this:
<?php
require('quote_class.php');
$my_quote = new Quote;
$my_quote -> Display();
?>
Spit out this??:
Notice: Undefined variable: quote in C:\Program Files\Apache Group\Apache2\htdocs\quotes\quote_class.php on line 15
Notice: Undefined property: Quote::$ in C:\Program Files\Apache Group\Apache2\htdocs\quotes\quote_class.php on line 15
Notice: Undefined variable: author in C:\Program Files\Apache Group\Apache2\htdocs\quotes\quote_class.php on line 16
Notice: Undefined property: Quote::$ in C:\Program Files\Apache Group\Apache2\htdocs\quotes\quote_class.php on line 16
<div class="quotes"><br>
<strong>-</strong>
</div>
??????