mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 15:43:58 +00:00
Remove period for clarity
This commit is contained in:
parent
1502155f59
commit
fabffb2d2e
@ -410,7 +410,7 @@ echo MyClass::MY_CONST; // Outputs 'value';
|
||||
echo MyClass::$staticVar; // Outputs 'static';
|
||||
MyClass::myStaticMethod(); // Outputs 'I am static';
|
||||
|
||||
// Access class members using ->.
|
||||
// Access class members using ->
|
||||
$my_class = new MyClass("An instance property"); // The parentheses are optional.
|
||||
echo $my_class->property; // => "public"
|
||||
echo $my_class->instanceProp; // => "An instance property"
|
||||
|
Loading…
Reference in New Issue
Block a user