assign value to php variable from echo output code example
Example 1: php variables
<?php
$string = 'string';
$number = 1;
?>
Example 2: how to make a variable in php
$varName = "Hello, World";
<?php
$string = 'string';
$number = 1;
?>
$varName = "Hello, World";