how to declare a variable in php using echo code example Example: php variables <?php $string = 'string'; $number = 1; ?>