Monkuar Posted August 1, 2012 Share Posted August 1, 2012 echo <<<L <a href='$indexedhelp.php?view=39'>hello</a> L; I need it to be like this: echo <<<L <a href='$indexedhelp.php?view=39'>hello</a> L; I want to use $indexed as a variable, but it actually joins with the word help, how do I fix? I want only indexed to be the variable, Thanks!! Link to comment https://forums.phpfreaks.com/topic/266569-simple-heredoc-help-please/ Share on other sites More sharing options...
Monkuar Posted August 1, 2012 Author Share Posted August 1, 2012 {$indexed} please shoot me sorry Link to comment https://forums.phpfreaks.com/topic/266569-simple-heredoc-help-please/#findComment-1366115 Share on other sites More sharing options...
Jessica Posted August 1, 2012 Share Posted August 1, 2012 Look at example 2 http://us.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc And curly syntax http://us.php.net/manual/en/language.types.string.php#language.types.string.parsing Link to comment https://forums.phpfreaks.com/topic/266569-simple-heredoc-help-please/#findComment-1366117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.