mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +00:00
Comment alignment
This commit is contained in:
parent
0d4730c506
commit
2e05e7b4c6
@ -412,9 +412,9 @@ MyClass::myStaticMethod(); // Outputs 'I am static';
|
||||
|
||||
// Access class members using ->
|
||||
$my_class = new MyClass('An instance property'); // The parentheses are optional if not passing in an argument.
|
||||
echo $my_class->property; // => "public"
|
||||
echo $my_class->property; // => "public"
|
||||
echo $my_class->instanceProp; // => "An instance property"
|
||||
$my_class->myMethod(); // => "MyClass"
|
||||
$my_class->myMethod(); // => "MyClass"
|
||||
|
||||
|
||||
// Extend classes using "extends"
|
||||
|
Loading…
Reference in New Issue
Block a user