Sorry for asking something that is widely documented, but I came across so many different approaches and I’m very, very confused.
public staticpublic $fooglobal, which seems to be a bad way of doing itdefine()const constant = 'constant value';
Am I underestimating the complexity of what I’m trying to do here?
class MyClass
{
$foo = 'bar';
function DoStuff()
{
echo $foo;
}
} //MyClass
1 Answer