From 665a3314d3ef943a023b7d7a6f5aadf954cc7e19 Mon Sep 17 00:00:00 2001 From: tarikmanoar Date: Thu, 6 Oct 2022 15:48:49 +0600 Subject: [PATCH] constructor chectsheet --- data/php-cheat-sheet.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/php-cheat-sheet.json b/data/php-cheat-sheet.json index 17e033bae..e6a317aca 100644 --- a/data/php-cheat-sheet.json +++ b/data/php-cheat-sheet.json @@ -18,6 +18,14 @@ "definition": "ফাংশন লিখতে", "code": "function NameOfTheFunction() { //place PHP code here }" }, + { + "definition": "কন্সট্যাকটর ফাংশন লিখতে < PHP 7.4", + "code": "class Ugh{\n public $devsonket; \n function __construct($devsonket) {\n $this->devsonket = $devsonket;\n }\n}" + }, + { + "definition": "কন্সট্যাকটর ফাংশন লিখতে > PHP 7.4", + "code": "class Wow{\n function __construct(public $devsonket) { }}" + }, { "definition": "ভ্যারিএবল তৈরি করতে", "code": "$variableName = 'value';"