assign value to php variable with echo output code example Example: php variables <?php $string = 'string'; $number = 1; ?>