w3schools variables types in php code example Example: PHP Variables <?php $txt = "Hello world!"; $x = 5; $y = 10.5; ?>