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:
And all that is outputted is:PHP Code:<?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;
?>
Why??? I'm confusedPHP Code:title; ?>
Thanks in advanced!
Rich Hawkes


Reply With Quote
Bookmarks