// single quotes
echo $string = 'This is sample text
';
// single quotes with variable in it
echo 'This is sample text with $string
';
// double quotes
echo $string = "This is another sample text
";
// double quotes with variable in it
echo "This is sample text with $string
";
// with escape characters
echo "This isn\"t sample text but original
";
echo 'This isn\'t sample text but it"s original
';
// Heredoc sample
$text = <<
'. $text .'';
// Nowdoc example
$text = <<<'EOL'
This is not a sample
text but
original
EOL;
echo ''. $text .'
';