Hello: Can anyone explain to me how to use a variable like a class, seems it has something to do with stdClass().
Example:
$shop->cart = new cart();
then '$shop' gets every property of 'cart'.
Thanks
Alan
Sure, just make an empty class container and instantiate it. <? class test{}; $test = new test; $test->variable = "I'm set";
echo $test->variable; ?>