From 21ca28d92af3800ed7c6e6e25b8b54e2f7d5331a Mon Sep 17 00:00:00 2001 From: colshrapnel Date: Mon, 1 Mar 2021 12:09:49 +0300 Subject: [PATCH] Delete the Variable declarations section With the new memory management model the Variable declarations part is not relevant anymore. so it's better to be removed. --- pages/The-Basics.md | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pages/The-Basics.md b/pages/The-Basics.md index c3870f4..11ae952 100644 --- a/pages/The-Basics.md +++ b/pages/The-Basics.md @@ -414,21 +414,3 @@ Since PHP 5.3, it is possible to leave out the middle part of the ternary operat Expression "expr1 ?: expr3" returns expr1 if expr1 evaluates to TRUE, and expr3 otherwise. * [Ternary operators](http://php.net/language.operators.comparison) - -## Variable declarations - -At times, coders attempt to make their code "cleaner" by declaring predefined variables with a different name. What -this does in reality is to double the memory consumption of said script. For the example below, let us say an example -string of text contains 1MB worth of data, by copying the variable you've increased the scripts execution to 2MB. - -{% highlight php %} -