1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-07-31 12:00:34 +02:00

Edit translate for creating object.

Edit translate for creating new object of class using new.
This commit is contained in:
Nasgul
2015-10-29 22:25:00 +02:00
parent f0a4c88acf
commit eef69b0d09

View File

@@ -483,7 +483,7 @@ echo MyClass::MY_CONST; // Выведет 'value';
echo MyClass::$staticVar; // Выведет 'static';
MyClass::myStaticMethod(); // Выведет 'I am static';
// Новый экземпляр класса используя new
// Создание нового экземпляра класса используя new
$my_class = new MyClass('An instance property');
// Если аргументы отсутствуют, можно не ставить круглые скобки