how to print variable in php echo code example Example: echo php <?php $string = "Hello, World!"; echo $string; ?>