1
0
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:
Andrew Davis
2019-07-13 08:48:55 -05:00
parent e09557cf2c
commit 2ae912aada
36 changed files with 224 additions and 401 deletions

View File

@@ -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