Account
Categories

Simple Assignment Operator


The = sign is called the simple assignment operator. It stores a value in a variable. The value on the right side is being input into the variable on the left side.

Syntax:
$variable = value;
Example:
<?php
$x = 10; // 10 assign to $x
?>