PHP Variables Scope

Variable in PHP can be declared anywhere in the script. So the scope of the variable is defined by where it can be accessed in the script.In other words, it is the context where a variable is defined and accessed. PHP has three different kinds of scopes: Local Scope Global Scope Static Scope Local Scope […]

See More

PHP Variable Types

PHP had different data types according to the values assigned to it. Like simple string, numeric types, arrays, and objects. PHP supports the following data types: Integer String Float Boolean Array Object NULL Resource Integers Integers are whole numbers without a decimal point. <?php $x = 200; // decimal number var_dump($x); echo "<br>"; $y = […]

See More

JavaScript Operators

Javascript operators are symbols or keywords which perform certain actions when added to a particular expression. For example, the add (+) symbol is an arithmetic operator that is used to add two variables, while the greater-than (>) or less-than (<) symbols are the comparison operators that tells the JavaScript engine to compare two values. Assignment […]

See More