<?php // variable substitution echo ('Hello {$person->name}! Welcome to $company!'); echo ("Hello {$person->name}! Welcome to $company!"); echo (<<<MSG Hello {$person->name}! Welcome to $company! MSG); // heredoc syntax var_dump(<<<SQL SELECT * FROM table SQL); var_dump(<<<"SQL" SELECT * FROM table SQL); // nowdoc syntax $var = <<<'TEXT' Hello {$person->name}! Welcome to $company! TEXT; var_dump(<<<'TEXT' Hello {$person->name}! Welcome to $company! TEXT);