Menu
Hey guys,
Right here is my problem, This is so basic I really don’t know why it is not working!
Here is my code:
[code=php]<?php
class ShopProduct{
public $title = ‘Default product name’;
public $producerMainName = ‘main name’;
public $producerFirstName = ‘first name’;
public $price = 0;
}
$product1 = new ShopProduct();
echo $product1->title;
?>
And all that is outputted is:
[code=php]title; ?>
Why??? I’m confused
Thanks in advanced!
Rich Hawkes