mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
bd2ce37841
commit
fd997f01ab
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ class myclass {
|
|||
private $var4;
|
||||
|
||||
// constructor
|
||||
function myclass() {
|
||||
function __construct() {
|
||||
// change some properties
|
||||
$this->var1 = "foo";
|
||||
$this->var2 = "bar";
|
||||
|
|
Loading…
Reference in a new issue