Update README.md

This commit is contained in:
Daniil Gentili 2018-04-27 18:42:38 +02:00 committed by GitHub
parent 87b6ed05a8
commit 1226878bc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ file_put_contents('test', serialize($a));
```
As you can see, here `a` does not extend any class, and we are serializing an instance of it to the file `test`.
This example also prints `Constructed!`, since the constructor function, __construct, is called.
This example also prints `Constructed!`, since the constructor function, `__magic_construct`, is called.
```
<?php