Можем ли мы применить конструкции PHP и логику внутри строковой переменной PHP... например
// php string variable:
$content = "Something in string........bla bla bala.......".
while(.....){}
."agian string...";
echo $content;
// i am getting error => unexpected T_WHILE in my php....
Подробнее здесь: https://stackoverflow.com/questions/612 ... while-loop