How to create a variable in php and how to assign it a value code example Example: php variables <?php $string = 'string'; $number = 1; ?>