Php Operator Examples Arithmetic Operators Arithmetical Operators An example of PHP's automatic type conversion is the addition operator '+'. Changing the default precedence using parentheses Increment/decrement Operators Incrementing and decrementing Using the autodecrement operator Using the negation operator Using pre- and postincrement Using autoincrement to add to a variable Postfix and Prefix Operators summary table Peculiarities of the ++ and -- Operators postfix and prefix increment operators also work on letter values Postfix and Prefix Operators in Action Calculation Results for Postfix and Prefix Operators Shorthand Operators summary table Variables Are Assigned by Value Using Assignment Operators Assignment Operators demo Combined Assignment Operators Combined assignment and addition Combined assignment and concatenation Bitwise Operators Bitwise Operators summary table Bitwise operators in action And operator Comparison Operators Comparing numbers and strings Loose Comparison Operators Using Comparison Operators in if Statements The Ternary Operator The equality operator These values are compared using dictionary order These values are compared using numeric order Equality Operators summary table Equality Operators in action The trinary operator Conditional Operator Conditional Statements Less-than and greater-than Logical Operators in Order of Precedence Use the boolean compare operators Greater than Less than Greate and equal Less than and equal Not equalLogical Operators Logic Operators in PHP Or operator Leap Year Determination Negation operator The not-equals operator Relational Operators summary table Relational Operators in action Operator Precedence Operator Precedence summary table Operators, precedence, and their associativity Using the ? Operator Using the ? operator to create a message

Php Code : Variables Are Assigned By Value

Variables Are Assigned by Value in php


<html>
<head>
<title>Variables are assigned by value</title>
</head>
<body>
<?php
$aVariable = 42;
$anotherVariable = $aVariable;

$aVariable = 325;
print $anotherVariable;
?>
 </body>
</html>