How-to articles, tricks, and solutions about VARIABLE

How to Start a PHP Function with an Ampersand

In PHP, an ampersand is put before the function name for returning a reference to the variable instead of returning the value. Learn how to do that, here.

How to Subtract Days from Date in JavaScript

Read this tutorial and learn useful information about the instance methods of the Date object to help you subtract days from date in JavaScript easily.

How to Unset a JavaScript Variable

Read this JavaScript tutorial to know why you cannot delete the property that is created with var. Also, know in which cases you shouldn’t use the operator.

How to Use the @ Sign in PHP

The @ sign is one of the common used ones in programming. Let’s discover how it can be used in PHP together. Read on the snippet and check the examples.

How to Use the Double Not(!!) Operator in PHP

The double Not(!!) or the NOT NOT is one of the commonly used operators in PHP. Here, we will show you what it is and how to use it in your practice.

How to Use the func_get_arg() Function in PHP

In this snippet, we will demonstrate to you how to use one of the common PHP functions: func_get_arg().

Is JavaScript a Pass-by-reference or Pass-by-value language?

On this page, we will look into pass-by-reference and pass-by-value. Let’s explore their differences and find out what language JavaScript is considered.

When to Use self and $this in PHP

This snippet is dedicated to the the main ways of using self and $this keywords in PHP. Here, you will learn how to use them and their main differences.

1 2