mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-08-06 14:56:58 +02:00
Continuing transition to hugo
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
+++
|
||||
title = "Classes: Constructor"
|
||||
description = "Construct your objects"
|
||||
tags = ["php", "construct", "constructor", "new"]
|
||||
slug = "classes-constructor"
|
||||
previous = "classes-visibility.html"
|
||||
next = "static.html"
|
||||
+++
|
||||
Whenever you create an object in PHP, you put parentheses after the class name.
|
||||
In the previous examples, we always left the parentheses empty.
|
||||
```php
|
||||
|
Reference in New Issue
Block a user