How to output the variable "$ text" through echo?

Closed due to the fact that the essence of the question is not clear to the participants 0db , Edward , AK , Alex , user192664 24 Oct '18 at 10:07 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    For such questions there is official documentation: http://php.net/manual/ru/language.types.string.php

    echo $text; echo "Какой-то текст: $text"; echo 'Какой-то текст:'.$text; echo <<<TEXT Какой-то текст: $text TEXT;