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!! Quote Link to comment Share on other sites More sharing options...
Monkuar Posted August 1, 2012 Author Share Posted August 1, 2012 {$indexed} please shoot me sorry Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.