Change constructor from PHP4 to modern style in example.

By naitsirch.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341814 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Andrey Gromov 2017-01-30 09:55:32 +00:00
parent bd2ce37841
commit fd997f01ab

View file

@ -97,7 +97,7 @@ class myclass {
private $var4;
// constructor
function myclass() {
function __construct() {
// change some properties
$this->var1 = "foo";
$this->var2 = "bar";