PHP Syntax Variables Assignemnt By Value

 

- Info:

- Value assignemnt means that value of an expression or another variable is copied to target variables.

- Changes made to one variable will have no affect on the other.

 

- Example:

- Create PHP Console Application Test.php.

 

Test.php

<?php

$color = "red";

$number = 12;

$age = 12;

$sum = 12 + "15"; // $sum = 27

?>