Variables Are Assigned by Value : Arithmetic Operators « Operator « PHP
- PHP
- Operator
- Arithmetic Operators
Variables Are Assigned by Value
<html>
<head>
<title>Variables are assigned by value</title>
</head>
<body>
<?php
$aVariable = 42;
$anotherVariable = $aVariable;
$aVariable = 325;
print $anotherVariable;
?>
</body>
</html>
Related examples in the same category